From patchwork Thu Jun 8 02:54:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 104811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp15113vqr; Wed, 7 Jun 2023 20:25:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7AV5ZrFEBNeAXKX/OUstywGk18PP+jN4q/4rxdT/+/xz6BuVgl2D/dg05NCbyHUFUvK6hd X-Received: by 2002:a05:6a20:3d0e:b0:10b:b25d:3a9a with SMTP id y14-20020a056a203d0e00b0010bb25d3a9amr6172639pzi.3.1686194730285; Wed, 07 Jun 2023 20:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686194730; cv=none; d=google.com; s=arc-20160816; b=fVoh/8Ly+ePQxZpBufCLQCP3pnf6v2QeFwiBRbHRE4RIT6uzBA0u2BbHo6oZpiUI7T 53Efp21tKzM9ncn/SIn1lPErkDP16m2tMylV4lp1hP6avH9Eo8Foobu2s1BhLAeiFvJi FyX2IcvGkehOwnNerQQVoVcCF2ao3dWj+sqjhGW0NR+UYPrZm5aKTVzix7dXdK0fijj/ Wf476ejwhhG4td2P/dC7TZrE0KulDhDk8eWHiED3U58qNhnBDv7Ta7NE+G1k3nMeEzgn na+gEEgr701FXuQoNpcQpBZxa6QatFcokjQJLyVdl81DIVTvD/SCc9faWYmu6tPAB40W 8ZNQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xA93YpODwXSEXwOg759c50kN9HhjwSvfbwEHkBFXNMM=; b=IAE7FFeTw3ZjSgm9zij7rBgG9SrTA11Wii0l5v6afGVRB56H1YO7sUeng7WzICItzB 70WUBySNm9EWiowkwRVP2GLaVNkm950+Kx+rJI3ba9bZISdhB0Fn68ybQBRfMuX6LRe0 b7FXb3yPaYHyrKwWmg/WFj2oRHyjQDm6qI/CkU8vF4VabB3Y4KBCqgw8BvfKTkdjzRDz ps50rLIezxModRyoYAVVrH01/9UWEgACFzfEKI1nI+TTMT78RH4cSvRW+bWhngJ/2qrS cC1JYMpPaXsSXNvw/mBBBEurDBBBKULhDMGwq1NrrfOTGBt1MhWrRTM/njm86oZDnFFZ Xn1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=EBli7UlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63de0a000000b0053011490008si244405pgg.885.2023.06.07.20.25.18; Wed, 07 Jun 2023 20:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=EBli7UlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233840AbjFHCyk (ORCPT + 99 others); Wed, 7 Jun 2023 22:54:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233835AbjFHCyh (ORCPT ); Wed, 7 Jun 2023 22:54:37 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA032103; Wed, 7 Jun 2023 19:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=xA93YpODwXSEXwOg759c50kN9HhjwSvfbwEHkBFXNMM=; b=EBli7UlTGu/OQDRqm5hvXT6rNk 6w+MOgYceFTD0zypl9H1P0yPFfo9XL25UL7rWfZvxELR8dr47WwRgkd7GOqoiLoM3sLypqzh47QvN /Hk/KskMYPkRQfoKguqwzRczFkVzPsJGPQbUiYb3SQPAJFHTuyaJlMrORnqvlcmWSr1PnnmZgKbtg I+nNbLuC7jxLA9ge3XZ0XRO22MlfgZCIpcM41Fk7OyK7bjP6IgxQ1ij6RwomqMJ85k0gjhAaLn46Q /sfAv+U/YTfl8gPHZ0YUDOXXiB6/Ze7b4B3HTrah8K5+hAuNjvoA1BYNcnYcH2H+h47y5SbgV1n23 YCq/qm2w==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q75nI-007rnl-1K; Thu, 08 Jun 2023 02:54:36 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Jeff Chase , Hans Verkuil , Mauro Carvalho Chehab , Joe Tessler , linux-media@vger.kernel.org, Arnd Bergmann , Mark Brown , Masahiro Yamada Subject: [PATCH] media: cec: i2c: ch7322: also select REGMAP Date: Wed, 7 Jun 2023 19:54:35 -0700 Message-Id: <20230608025435.29249-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768103325509305093?= X-GMAIL-MSGID: =?utf-8?q?1768103325509305093?= Selecting only REGMAP_I2C can leave REGMAP unset, causing build errors, so also select REGMAP to prevent the build errors. ../drivers/media/cec/i2c/ch7322.c:158:21: error: variable 'ch7322_regmap' has initializer but incomplete type 158 | static const struct regmap_config ch7322_regmap = { ../drivers/media/cec/i2c/ch7322.c:159:10: error: 'const struct regmap_config' has no member named 'reg_bits' 159 | .reg_bits = 8, ../drivers/media/cec/i2c/ch7322.c:159:21: warning: excess elements in struct initializer 159 | .reg_bits = 8, ../drivers/media/cec/i2c/ch7322.c:160:10: error: 'const struct regmap_config' has no member named 'val_bits' 160 | .val_bits = 8, ../drivers/media/cec/i2c/ch7322.c:160:21: warning: excess elements in struct initializer 160 | .val_bits = 8, ../drivers/media/cec/i2c/ch7322.c:161:10: error: 'const struct regmap_config' has no member named 'max_register' 161 | .max_register = 0x7f, ../drivers/media/cec/i2c/ch7322.c:161:25: warning: excess elements in struct initializer 161 | .max_register = 0x7f, ../drivers/media/cec/i2c/ch7322.c:162:10: error: 'const struct regmap_config' has no member named 'disable_locking' 162 | .disable_locking = true, ../drivers/media/cec/i2c/ch7322.c:162:28: warning: excess elements in struct initializer 162 | .disable_locking = true, ../drivers/media/cec/i2c/ch7322.c: In function 'ch7322_probe': ../drivers/media/cec/i2c/ch7322.c:468:26: error: implicit declaration of function 'devm_regmap_init_i2c' [-Werror=implicit-function-declaration] 468 | ch7322->regmap = devm_regmap_init_i2c(client, &ch7322_regmap); ../drivers/media/cec/i2c/ch7322.c:468:24: warning: assignment to 'struct regmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 468 | ch7322->regmap = devm_regmap_init_i2c(client, &ch7322_regmap); ../drivers/media/cec/i2c/ch7322.c: At top level: ../drivers/media/cec/i2c/ch7322.c:158:35: error: storage size of 'ch7322_regmap' isn't known 158 | static const struct regmap_config ch7322_regmap = { Fixes: 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller driver") Signed-off-by: Randy Dunlap Cc: Jeff Chase Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: Joe Tessler Cc: linux-media@vger.kernel.org Cc: Arnd Bergmann Cc: Mark Brown Cc: Masahiro Yamada --- drivers/media/cec/i2c/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/media/cec/i2c/Kconfig b/drivers/media/cec/i2c/Kconfig --- a/drivers/media/cec/i2c/Kconfig +++ b/drivers/media/cec/i2c/Kconfig @@ -5,6 +5,7 @@ config CEC_CH7322 tristate "Chrontel CH7322 CEC controller" depends on I2C + select REGMAP select REGMAP_I2C select CEC_CORE help