Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4134583rwb; Mon, 21 Nov 2022 04:16:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KR1z2kdSDZ7ug4IWqsAVpPzPNz6NpslQgaRqE1b2vBC67Q4CDOeVQgbPMMLJSA4ZS4ReG X-Received: by 2002:a05:6402:3895:b0:468:15f1:54b5 with SMTP id fd21-20020a056402389500b0046815f154b5mr15811383edb.8.1669032977520; Mon, 21 Nov 2022 04:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669032977; cv=none; d=google.com; s=arc-20160816; b=dzrLP81Pl3dnJeQswFRzMzO3ElAEAH+wG84iATbuh+lZgCrWPmOw/JP6l4F08PqiDQ ZSSKLHNzBNXnaOD+lTZgg5nVLVoF19v+fDOzfPCSE3hk4W5UIyhk+oInb/FC2WHtGrML ImHwjDvEWuKah+QHM5VRxmKRcoqtdAapJgZo5Y3T9hqvKzG7bwRkDWQmYpjwmBONk8Go LfHtRNJCZRXXs7sM6PVMj9zxXerWDDbpzuwRZu9H7hUWglcXyR3LDvyy+DfxRnZl2sMw SVKYjgodk8nqion30ySs46s3OrDOscW1uT74KinV1QoTaIE+LRn8V++JMqGIq1B0DtNP xzcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0tCXYHEHaJSwqdeaKtt1G46UU+pCmrfUsjdAfzfpehk=; b=xUfwzu1wY6rlOaXEKqJyg++3pRmxE/z7sz3/tu+I9d/LwKsnYmPVI00qAo7iCmeUg5 Kj+04Z3OkJ7AJCyzqIivxwakm7GpzoX7RrWqK2HF6vv7rww1FYK4dGdoweriEkUbmQBz WgalWcskAHkMFW4Tv8ii0pVNUUHqr73KJBHg54CWXlg6rMqf8Y6LHTJ2ANxugU60e5xN tkru7HqUA1e5vLR9aLG3LkZ52HwmoOhVUPhBNQI6n2aIMrsXsVbC+Onyv9dR8UkU6mre YJeo3gjRM7wg5dKORLwOXateSbpm3AaiVBR1kSKNUqO4kkQuuFS+OSHVvcui43mwnDMA 80Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mHMAAdV0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs31-20020a1709073e9f00b0078e27ef9501si8644118ejc.750.2022.11.21.04.15.54; Mon, 21 Nov 2022 04:16:17 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=mHMAAdV0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbiKULhd (ORCPT + 92 others); Mon, 21 Nov 2022 06:37:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbiKULgx (ORCPT ); Mon, 21 Nov 2022 06:36:53 -0500 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5EBDEE0E for ; Mon, 21 Nov 2022 03:33:19 -0800 (PST) Received: by mail-lj1-x234.google.com with SMTP id l8so14141634ljh.13 for ; Mon, 21 Nov 2022 03:33:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0tCXYHEHaJSwqdeaKtt1G46UU+pCmrfUsjdAfzfpehk=; b=mHMAAdV0C6ICvJwTMevtLqzSrKXNvNxOLKXlHq6pWKOtuw14FVQ5M27S1jQGK5BYXR DUryb7GdTzi2EPfRJCajOrcLG6OigQ9NYQw3QGMLC3qA4T21X+7UMDIILE3S0pvK67j4 mt+YeGcuKe31M24k1bcKJQhB88iJoxBYce7rwpQDiximOTQOJ9qUBe00AXb1QmwBB+XN bPEKXZXFcjk/ALTta4BmJXWihcV3Kx+Ls8xICv7CVyenuPuNlFbMqYyyl1cMGImSUW8T M1kvUjBX+S50+rzeIVPyVSLIrJ+HG/1gDT4KXMrJcx3UrqHsGKIXFW8gLJpgkx8ySNj5 3TpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0tCXYHEHaJSwqdeaKtt1G46UU+pCmrfUsjdAfzfpehk=; b=XnwR8eyDGo/AIQKT0gVr11G2NkVeABzMuijf+YcS3SZJPN7YVEmlvdCdn7O4KYsYdE 0ZKLnnawyTZC6bvJls+jupqsrPtYdpu7i4luuIr2sYWsoQLeP9zGIWeRZLfap5KZW/9C KBpV7uyfqt8I9LzygRgVwEFiSORAonGkepysrfAriNDZbsVUkJzajW30N1zuThzFxzSL E0tX7QrqhVQI94zCl7G5BV2en2yQjykTWVmqMkJ0xqQ037yBxQ8Jy68gQR+zbvHGJDAI PrQu/oDRfBCjYSHeiU+5CE+S4YHocBNTkiN0G5B+iaIR1v9nyH5cJHVLfeZPRfZR/DMU KXtg== X-Gm-Message-State: ANoB5plPhqsesF13aFYfx8JDOI5XvIDQPdIbX26sevvRvLm0YU1JXjlu 3aStanuuzMliOgZubCjd2rcmN7mVbfk= X-Received: by 2002:a2e:9103:0:b0:278:fa62:bc90 with SMTP id m3-20020a2e9103000000b00278fa62bc90mr5927595ljg.360.1669030397770; Mon, 21 Nov 2022 03:33:17 -0800 (PST) Received: from [172.16.196.95] ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id j23-20020ac253b7000000b004a62ff61b3dsm1998685lfh.252.2022.11.21.03.33.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 03:33:17 -0800 (PST) Message-ID: Date: Mon, 21 Nov 2022 13:33:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] mfd: rohm-bd9576: convert to i2c's .probe_new() Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Lee Jones Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de References: <20221121102454.15664-1-u.kleine-koenig@pengutronix.de> From: Matti Vaittinen In-Reply-To: <20221121102454.15664-1-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Thanks Uwe! On 11/21/22 12:24, Uwe Kleine-König wrote: > The probe function doesn't make use of the i2c_device_id * parameter so > it can be trivially converted. > > Signed-off-by: Uwe Kleine-König Acked-by: Matti Vaittinen > --- > drivers/mfd/rohm-bd9576.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c > index f37cd4f27aeb..c854ab5bcd80 100644 > --- a/drivers/mfd/rohm-bd9576.c > +++ b/drivers/mfd/rohm-bd9576.c > @@ -88,8 +88,7 @@ static struct regmap_irq_chip bd9576_irq_chip = { > .irq_reg_stride = 1, > }; > > -static int bd957x_i2c_probe(struct i2c_client *i2c, > - const struct i2c_device_id *id) > +static int bd957x_i2c_probe(struct i2c_client *i2c) > { > int ret; > struct regmap *regmap; > @@ -180,7 +179,7 @@ static struct i2c_driver bd957x_drv = { > .name = "rohm-bd957x", > .of_match_table = bd957x_of_match, > }, > - .probe = &bd957x_i2c_probe, > + .probe_new = &bd957x_i2c_probe, > }; > module_i2c_driver(bd957x_drv); > -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~