All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
	rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org
Subject: [rtc-linux] Re: [PATCH 4/4] RTC: switch to using is_visible() to control sysfs attributes
Date: Wed, 22 Jul 2015 22:53:52 +0200	[thread overview]
Message-ID: <20150722205352.GO2853@piout.net> (raw)
In-Reply-To: <1437433372-15425-4-git-send-email-dmitry.torokhov@gmail.com>

Hi,

Seems mostly good, a few comments on top of Krzysztof's below:

On 20/07/2015 at 16:02:52 -0700, Dmitry Torokhov wrote :
> Instead of creating an attribute manually, after the device has been
> registered, let's rely on facilities provided by the attribute groups to
> control which attributes are visible and which are not. This allows to to
too many 'to' here  --------------------------------------------------^

[...]

> -void __init rtc_sysfs_init(struct class *rtc_class)
> +const struct attribute_group** rtc_get_dev_attribute_groups(void)
That space is not properly placed ^, this should be:
const struct attribute_group **rtc_get_dev_attribute_groups(void)


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
	rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4] RTC: switch to using is_visible() to control sysfs attributes
Date: Wed, 22 Jul 2015 22:53:52 +0200	[thread overview]
Message-ID: <20150722205352.GO2853@piout.net> (raw)
In-Reply-To: <1437433372-15425-4-git-send-email-dmitry.torokhov@gmail.com>

Hi,

Seems mostly good, a few comments on top of Krzysztof's below:

On 20/07/2015 at 16:02:52 -0700, Dmitry Torokhov wrote :
> Instead of creating an attribute manually, after the device has been
> registered, let's rely on facilities provided by the attribute groups to
> control which attributes are visible and which are not. This allows to to
too many 'to' here  --------------------------------------------------^

[...]

> -void __init rtc_sysfs_init(struct class *rtc_class)
> +const struct attribute_group** rtc_get_dev_attribute_groups(void)
That space is not properly placed ^, this should be:
const struct attribute_group **rtc_get_dev_attribute_groups(void)


-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  parent reply	other threads:[~2015-07-22 20:53 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 23:02 [rtc-linux] [PATCH 1/4] RTC: fix double free in rtc_register_device() error path Dmitry Torokhov
2015-07-20 23:02 ` Dmitry Torokhov
2015-07-20 23:02 ` [rtc-linux] [PATCH 2/4] RTC: remove unnecessary device_get() in rtc_device_unregister Dmitry Torokhov
2015-07-20 23:02   ` Dmitry Torokhov
2015-07-21  0:39   ` [rtc-linux] " Krzysztof Kozlowski
2015-07-21  0:39     ` Krzysztof Kozlowski
2015-07-22 20:33   ` [rtc-linux] " Alexandre Belloni
2015-07-22 20:33     ` Alexandre Belloni
2015-07-20 23:02 ` [rtc-linux] [PATCH 3/4] RTC: properly manage lifetime of dev and cdev in rtc device Dmitry Torokhov
2015-07-20 23:02   ` Dmitry Torokhov
2015-07-21  0:54   ` [rtc-linux] " Krzysztof Kozlowski
2015-07-21  0:54     ` Krzysztof Kozlowski
2015-07-22 20:40   ` [rtc-linux] " Alexandre Belloni
2015-07-22 20:40     ` Alexandre Belloni
2015-07-20 23:02 ` [rtc-linux] [PATCH 4/4] RTC: switch to using is_visible() to control sysfs attributes Dmitry Torokhov
2015-07-20 23:02   ` Dmitry Torokhov
2015-07-21  1:21   ` [rtc-linux] " Krzysztof Kozlowski
2015-07-21  1:21     ` Krzysztof Kozlowski
2015-07-22 20:57     ` Alexandre Belloni
2015-07-22 20:57       ` Alexandre Belloni
2015-07-22 21:44       ` Dmitry Torokhov
2015-07-22 21:44         ` Dmitry Torokhov
2015-07-23  0:40       ` Krzysztof Kozlowski
2015-07-23  0:40         ` Krzysztof Kozlowski
2015-07-22 20:53   ` Alexandre Belloni [this message]
2015-07-22 20:53     ` Alexandre Belloni
2015-07-21  0:32 ` [rtc-linux] [PATCH 1/4] RTC: fix double free in rtc_register_device() error path Krzysztof Kozlowski
2015-07-21  0:32   ` Krzysztof Kozlowski
2015-07-21  0:42   ` Dmitry Torokhov
2015-07-21  0:42     ` Dmitry Torokhov
2015-07-22 20:32 ` [rtc-linux] " Alexandre Belloni
2015-07-22 20:32   ` Alexandre Belloni

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=20150722205352.GO2853@piout.net \
    --to=alexandre.belloni@free-electrons.com \
    --cc=a.zummo@towertech.it \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    /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.