Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2332563rdh; Tue, 26 Sep 2023 22:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUIiLw8jRqziezfFX5xOPOC9pdfzpXw+2lvGQ7fCvh0+KLco0kJEbAUE/D/j2hCZGctiJK X-Received: by 2002:a05:6a00:1ac9:b0:68f:c078:b0c9 with SMTP id f9-20020a056a001ac900b0068fc078b0c9mr1717193pfv.11.1695791553614; Tue, 26 Sep 2023 22:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695791553; cv=none; d=google.com; s=arc-20160816; b=L2Gk4V8aV8h08GbgXSG5F0rtbgN33sbSrQl8DEltMB9YQ/tFjPCYj+bnuRag1L0ktD ZlHKq9IrnymoFXLnJi+LvoKGTzIVMYEipMeTWGrfUd+40/SsAadN5PmQnjAGvCprOUmk ORZrrRmTNCjhxhqEwhIa9p12jlIUmBITexSjq60/letYcjDYuBob8xHGMEcy4oZo0PYi yNpCnWEg++oJr9aG0yvpXt8+ijQUto3XctPOeiBhNk/Udw/tdAtsfMy5foxdLOX/fR56 hlm7QwV243TRAYq8lrRp9z5wXotU0+Hch26z4/btCIsQQT1f45C0/Nqb5U21gsXXxoNN L/DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GB/+sYyt7UfqsTknlmHjpHkHES7R1DkZRmPeNi9W7yA=; fh=LnReewwy2kxiFBwYYoWSb8WRGE1pjOFvwxtFbGjcaS0=; b=pL6mWKgWn3AToV7QS7edFEHvy8eyGfxrsWJi/xR8aGUI3ODtlqu72JOwIbsNyILnxV pSmus7motcgZcTpY3WDAehcTcglJTUnpDP37BPwowCjArH+DP26I6t8cXATjWaGldxyW IodF037WNjYZ76ZNUHY7365wKhiiU+PtrFTcNipVhzMrfD19cMW3yuli0yuDUMLDb+eP xJ3EduAbR+cooiSkr40SxfAKsLCCWPiC75qWXTOuDcK+B5Ww6QwYP216NwA04DjRPLqQ 5hjAfW3yd1br1OTOmuxymw+KG7KOg4gaxj3EPJiojj9+ep2TJcI7cf2DS8VH70Kgfej5 i3kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CCFWIGXz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y21-20020a056a00191500b0068a6f6d9f7dsi15580306pfi.57.2023.09.26.22.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 22:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CCFWIGXz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C1C268073290; Tue, 26 Sep 2023 12:08:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235681AbjIZTI4 (ORCPT + 99 others); Tue, 26 Sep 2023 15:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235647AbjIZTIy (ORCPT ); Tue, 26 Sep 2023 15:08:54 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBD69F for ; Tue, 26 Sep 2023 12:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695755327; x=1727291327; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vr4DyiomFZ1CexH6Of/72fHCetBiilFqUbM1YUVAzbk=; b=CCFWIGXzT5rsUnVDKMt8EVl2qxdLg/Kz3bteUhlLGFaBtcwqBn6qIKMW JlgQtVqu7dqez+YxHZZe9Cb+gYlPG6zrLhDSMBxHuUVHck7rccrXw9HNm 1O1/4KIBjhsEQFiAlEjOfsX7Y5M1MdAIZBRfcewiTx5n9l0w9Pl7OYxOo 1lJjZRHYe4BDqRM+aJPYcMM+JYhly79jjFrZ63lSf45WZdJf9qjXclfqf 0lap5q23Do1/gXepZMe5Ac0L0xHCS/PjdqZ5/FXW48z9olQOqQkHOi2Gn +hnoYwoOMoEjqv/V86zi7NmerDIDr0DmcKXDD/FwUlTDhvkDXnfUlnGoM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="448142636" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="448142636" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 12:08:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="819142537" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="819142537" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 26 Sep 2023 12:08:45 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 153B387; Tue, 26 Sep 2023 22:08:44 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org Cc: Peter Tyser , Lee Jones , Takashi Iwai Subject: [PATCH v1 2/4] mfd: lpc_ich: Convert gpio_version to be enum Date: Tue, 26 Sep 2023 22:08:32 +0300 Message-Id: <20230926190834.932233-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230926190834.932233-1-andriy.shevchenko@linux.intel.com> References: <20230926190834.932233-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 12:08:52 -0700 (PDT) We have an anonymous enum for the GPIO versions. Make it named and use this type for the gpio_version member of struct lpc_ich_info. Signed-off-by: Andy Shevchenko --- include/linux/mfd/lpc_ich.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mfd/lpc_ich.h b/include/linux/mfd/lpc_ich.h index ea4a4b1b246a..83621e0ccf33 100644 --- a/include/linux/mfd/lpc_ich.h +++ b/include/linux/mfd/lpc_ich.h @@ -15,7 +15,7 @@ #define ICH_RES_GPE0 1 /* GPIO compatibility */ -enum { +enum lpc_gpio_versions { ICH_I3100_GPIO, ICH_V5_GPIO, ICH_V6_GPIO, @@ -29,7 +29,7 @@ enum { struct lpc_ich_info { char name[32]; unsigned int iTCO_version; - unsigned int gpio_version; + enum lpc_gpio_versions gpio_version; enum intel_spi_type spi_type; u8 use_gpio; }; -- 2.40.0.1.gaa8946217a0b