All of lore.kernel.org
 help / color / mirror / Atom feed
From: linux@roeck-us.net (Guenter Roeck)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv0 3/3] rtc: rtc-isl12057: add alarm support to Intersil ISL12057 RTC driver
Date: Wed, 05 Nov 2014 21:59:47 -0800	[thread overview]
Message-ID: <545B0E53.4020003@roeck-us.net> (raw)
In-Reply-To: <20141106055017.GL8509@sirena.org.uk>

On 11/05/2014 09:50 PM, Mark Brown wrote:
> On Wed, Nov 05, 2014 at 10:42:52PM +0100, Arnaud Ebalard wrote:
>
>> +static int _isl12057_rtc_toggle_alarm(struct device *dev, int enable)
>> +{
>> +	struct isl12057_rtc_data *data = dev_get_drvdata(dev);
>
> I can't help but think that toggle is a confusing name for this.
> enable?
>
If I recall correctly we had this argument before. Problem is that the
function can also _disable_ the alarm, so to name it enable is just
as misleading or confusing. update_alarm, maybe ?

Guenter

WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <linux@roeck-us.net>
To: Mark Brown <broonie@kernel.org>, Arnaud Ebalard <arno@natisbad.org>
Cc: "Mark Rutland" <mark.rutland@arm.com>,
	"Alessandro Zummo" <a.zummo@towertech.it>,
	rtc-linux@googlegroups.com, "Pawel Moll" <pawel.moll@arm.com>,
	"Stephen Warren" <swarren@wwwdotorg.org>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
	linux-doc@vger.kernel.org,
	"Rob Herring" <rob.herring@calxeda.com>,
	"Jason Gunthorpe" <jgunthorpe@obsidianresearch.com>,
	devicetree@vger.kernel.org,
	"Uwe Kleine-König" <uwe@kleine-koenig.org>,
	"Rob Landley" <rob@landley.net>,
	"Kumar Gala" <galak@codeaurora.org>,
	"Grant Likely" <grant.likely@linaro.org>,
	"Peter Huewe" <peter.huewe@infineon.com>,
	"Thierry Reding" <treding@nvidia.com>,
	linux-arm-kernel@lists.infradead.org,
	"Jason Cooper" <jason@lakedaemon.net>
Subject: Re: [PATCHv0 3/3] rtc: rtc-isl12057: add alarm support to Intersil ISL12057 RTC driver
Date: Wed, 05 Nov 2014 21:59:47 -0800	[thread overview]
Message-ID: <545B0E53.4020003@roeck-us.net> (raw)
In-Reply-To: <20141106055017.GL8509@sirena.org.uk>

On 11/05/2014 09:50 PM, Mark Brown wrote:
> On Wed, Nov 05, 2014 at 10:42:52PM +0100, Arnaud Ebalard wrote:
>
>> +static int _isl12057_rtc_toggle_alarm(struct device *dev, int enable)
>> +{
>> +	struct isl12057_rtc_data *data = dev_get_drvdata(dev);
>
> I can't help but think that toggle is a confusing name for this.
> enable?
>
If I recall correctly we had this argument before. Problem is that the
function can also _disable_ the alarm, so to name it enable is just
as misleading or confusing. update_alarm, maybe ?

Guenter

  reply	other threads:[~2014-11-06  5:59 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 21:42 [PATCHv0 0/3] rtc: rtc-isl12057: fixes and alarm support Arnaud Ebalard
2014-11-05 21:42 ` Arnaud Ebalard
2014-11-05 21:42 ` [PATCHv0 1/3] rtc: rtc-isl12057: fix masking of register values Arnaud Ebalard
2014-11-05 21:42   ` Arnaud Ebalard
2014-11-06  8:29   ` Uwe Kleine-König
2014-11-06  8:29     ` Uwe Kleine-König
2014-11-06 23:34     ` Arnaud Ebalard
2014-11-06 23:34       ` Arnaud Ebalard
2014-11-05 21:42 ` [PATCHv0 2/3] rtc: rtc-isl12057: fix isil vs isl naming for intersil Arnaud Ebalard
2014-11-05 21:42   ` Arnaud Ebalard
2014-11-06  5:32   ` Mark Brown
2014-11-06  5:32     ` Mark Brown
2014-11-06 22:46     ` Arnaud Ebalard
2014-11-06 22:46       ` Arnaud Ebalard
2014-11-07  6:39       ` Uwe Kleine-König
2014-11-07  6:39         ` Uwe Kleine-König
2014-11-05 21:42 ` [PATCHv0 3/3] rtc: rtc-isl12057: add alarm support to Intersil ISL12057 RTC driver Arnaud Ebalard
2014-11-05 21:42   ` Arnaud Ebalard
2014-11-06  5:50   ` Mark Brown
2014-11-06  5:50     ` Mark Brown
2014-11-06  5:59     ` Guenter Roeck [this message]
2014-11-06  5:59       ` Guenter Roeck
2014-11-06  6:07       ` Mark Brown
2014-11-06  6:07         ` Mark Brown
2014-11-06 23:30     ` Arnaud Ebalard
2014-11-06 23:30       ` Arnaud Ebalard
2014-11-07  7:58       ` Uwe Kleine-König
2014-11-07  7:58         ` Uwe Kleine-König
2014-11-07  9:37         ` Arnaud Ebalard
2014-11-07  9:37           ` Arnaud Ebalard
2014-11-07  9:53         ` Mark Brown
2014-11-07  9:53           ` Mark Brown
2014-11-07  9:47       ` Mark Brown
2014-11-07  9:47         ` Mark Brown
2014-11-06  8:49   ` Uwe Kleine-König
2014-11-06  8:49     ` Uwe Kleine-König
2014-11-06 22:47     ` Arnaud Ebalard
2014-11-06 22:47       ` Arnaud Ebalard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545B0E53.4020003@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.