Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1410180pxk; Fri, 4 Sep 2020 08:42:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyABEKyI8IbCNhAB8nBm9/SL7PmzHBSdeugtKsHz7YmiYxfONignZ1riscbIypcK976kMIC X-Received: by 2002:a17:906:4087:: with SMTP id u7mr8083811ejj.466.1599234178359; Fri, 04 Sep 2020 08:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599234178; cv=none; d=google.com; s=arc-20160816; b=PS5u+cPJLqgPX54Z/FzTSCz+vB7/4u+/u8Y9xn+czUbizfKlKN4/TP6d3OwzuybdHm YGRZnH6kKPPRwyKVDnwzMrN7GQF476GczZIr1fd5sbauhtMSNvF2+StjNnxqAPfBPFLS Fe9oMKICR7XUaqzZafzcNT/KVo2m9VCvmQTeN1J4G9PbV7MwFjr2KwENr1BzSTZ1bAO9 3fgUyIniwvoF1N+KelSb0LgBU3/nZq0ytdU3AcTXYFCCWkurSmQoW6oIdTJXJTuDTejo E3wSZWUR6BIWG5YBpiPMuFgVLDpij/5RPEpSJHWceaIkwu62534BI/LShGkexWvpl3kA ubxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WCSklbRrg4uyJ7gIyKinPjUaLRXYoyqccTcSwXgUTE0=; b=pekTT44pcKbJgZ+HvoExcdjWkCuYcv4u9DZaFHgrTnmhNOcVnbWtzF1TqaYbN4/231 4uz2nWlU6Mih0gtswApZp/GrvPEkji19XXhXe6FQ6GbT1GaVJW2X6GWzprihld2LSSTc /Ypd16vdFRqbrIJEWZbKXj8NE/aC/8BM9dLUpoyUQB8+ABIiMB/MB1AWFBvPhm/HiBAj Aw3qxJdmGP5FDcP5OqSRXMZTaZdfIhQV0H6tPGwgDMwQlYwZ52sshuJL4a8hRNoRoA1M aroy1qjIC4AYYwdmojRnX+6gvvVxXv7psdgSAZtK2MwSOVo4cpVW+/b2HfR9lFDPbRgx xf3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds7si5996448ejc.511.2020.09.04.08.42.34; Fri, 04 Sep 2020 08:42:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726196AbgIDPlv (ORCPT + 99 others); Fri, 4 Sep 2020 11:41:51 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:3015 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgIDPlr (ORCPT ); Fri, 4 Sep 2020 11:41:47 -0400 X-Originating-IP: 90.66.108.79 Received: from localhost (lfbn-lyo-1-1932-79.w90-66.abo.wanadoo.fr [90.66.108.79]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 98CE8240002; Fri, 4 Sep 2020 15:41:44 +0000 (UTC) Date: Fri, 4 Sep 2020 17:41:44 +0200 From: Alexandre Belloni To: Bartosz Golaszewski Cc: Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 7/8] rtc: rx8010: fix indentation in probe() Message-ID: <20200904154144.GL230586@piout.net> References: <20200904152116.2157-1-brgl@bgdev.pl> <20200904152116.2157-8-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200904152116.2157-8-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/2020 17:21:15+0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Align the arguments passed to devm_rtc_device_register() with the upper > line. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/rtc/rtc-rx8010.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c > index 181fc21cefa8..ed8ba38b4991 100644 > --- a/drivers/rtc/rtc-rx8010.c > +++ b/drivers/rtc/rtc-rx8010.c > @@ -450,7 +450,7 @@ static int rx8010_probe(struct i2c_client *client, > } > > rx8010->rtc = devm_rtc_device_register(&client->dev, client->name, > - &rx8010_rtc_ops, THIS_MODULE); > + &rx8010_rtc_ops, THIS_MODULE); > You have bonus points if you replace that patch by switching from devm_rtc_device_register to devm_rtc_allocate_device and rtc_register_device. More bonus points if you also set range_min and range_max and then get rid of the range checking in set_time. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com