Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2428281rwb; Sat, 19 Nov 2022 16:10:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5u41zRYYT6yL8pg7TnizoOUJUPI2JMtucDwuPqB8nbsG+vdd3CxcRMPtuCVYUi1ruRCFXF X-Received: by 2002:a63:ff17:0:b0:470:8f8d:eb51 with SMTP id k23-20020a63ff17000000b004708f8deb51mr12042665pgi.69.1668903050372; Sat, 19 Nov 2022 16:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668903050; cv=none; d=google.com; s=arc-20160816; b=KIrvKZ65WLBUui6iyWOEBauf9ZGDKREs3f5wfx1IdUA8v0TUmIJyrDsVs2FHEGut8+ 3g1mlGW5BIZoSCvtrJLciOF8KM0epPC8Mq0a1P7XkN40Zujd+C2yzHAmuO5QBnLG4WWA Ad5vw/hUhaO5uwVO2wCeEYNdDh6e2IWnxNmniNfY50VbMM/zgoqBo2dnmKCMabEuoONk lpcxoySZMG4yjmbjvWlfgQ9SFe7pSzGylUuEDM2mga06/2ctmbizcFZbVkMH8O9uWktl H9KHLxLWHVh2qRMov+CvuFfYMwUC5ORI/Qfh5OXgFrktJthk3UTVl6tET5GjL6D7Hr+n 2D1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=17CqComxe+k6h8f0mE/chWaXjRFAVcoSj3D8bZumfx0=; b=Lla670bWQhhaaTQomf/w5w7KvQwbqgfufpW5AJjAIuYIYQHOyZwTaOh7wBB9hCMjeJ 7QlY9tnPhKb88yIAyWuTIsZSpG/kzZXq38X4mgTQZHP0xTK1YzFSTYx4UPJbXNgKXIfP sxVx0JH15kkPzCeAX5u9cz4aVx1TY0TDiJHRGfqJcpuIn33rRjmrtj0NwPmaRjcSGArC yDss9LboGAZ0gw/cLsy2gxjpSQM4UW96ioPb+tCsmg5FVWdWPWdn6uIL2Q2ZMRmrTY7o g7csrzFhOVNhxl1AKQeSggPBDOZH+BbaDZIZx68iWfu/mmnheyxwwhdps6svTZojgfAB vhDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=akFF+cTr; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020aa79548000000b0056e0ac0f382si6776197pfq.233.2022.11.19.16.10.30; Sat, 19 Nov 2022 16:10:50 -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=@bootlin.com header.s=gm1 header.b=akFF+cTr; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233986AbiKSX6u (ORCPT + 91 others); Sat, 19 Nov 2022 18:58:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231666AbiKSX6t (ORCPT ); Sat, 19 Nov 2022 18:58:49 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BED313DEF; Sat, 19 Nov 2022 15:58:47 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 386471BF207; Sat, 19 Nov 2022 23:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668902326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=17CqComxe+k6h8f0mE/chWaXjRFAVcoSj3D8bZumfx0=; b=akFF+cTrOMDG+B+BpYqPxd+pmuBuDC3i+6oD0CJgq9R0IhWRKIX36egShNIOdpyA/XueLh xGdSUiSocTV1O1UzmNSL7WHeI1bojNgcUILzod+VhYa4ymUMg3fyUTLTS9r4S5oAeAYO+y Tf5cOfyOKlH1WbrIdFptcgjVWprnnDoMIY+XrUoaMk2yzhb51qSJV0LBF/WDa7tXOWzwda TNdfx7Fc1cdZhQg5P0tcnzkHYX49S2r2crrkPPR0uHM1ge3PnlBCjVrPf3RVlFhNtaIyW6 H3D5XazNjHRejV+wXtEYXYZhEwmjUniS1nT0j3nCJL+BdaeBhT1Wyc/A6fWMXg== Date: Sun, 20 Nov 2022 00:58:44 +0100 From: Alexandre Belloni To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Angel Iglesias , Lee Jones , Grant Likely , Wolfram Sang , Alessandro Zummo , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 561/606] rtc: isl1208: Convert to i2c's .probe_new() Message-ID: References: <20221118224540.619276-1-uwe@kleine-koenig.org> <20221118224540.619276-562-uwe@kleine-koenig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221118224540.619276-562-uwe@kleine-koenig.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 On 18/11/2022 23:44:55+0100, Uwe Kleine-K?nig wrote: > From: Uwe Kleine-K?nig > > .probe_new() doesn't get the i2c_device_id * parameter, so determine > that explicitly in the probe function. > This is already done later on in the function, please check the rtc patches as I took your previous series. > Signed-off-by: Uwe Kleine-K?nig > --- > drivers/rtc/rtc-isl1208.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c > index 73cc6aaf9b8b..fca9cc440296 100644 > --- a/drivers/rtc/rtc-isl1208.c > +++ b/drivers/rtc/rtc-isl1208.c > @@ -799,6 +799,7 @@ static int isl1208_setup_irq(struct i2c_client *client, int irq) > static int > isl1208_probe(struct i2c_client *client) > { > + const struct i2c_device_id *id = i2c_client_get_device_id(client); > int rc = 0; > struct isl1208_state *isl1208; > int evdet_irq = -1; > -- > 2.38.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com