[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <553005B5.9000101@cogentembedded.com>
Date: Thu, 16 Apr 2015 21:55:49 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
netdev@...r.kernel.org
CC: linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Guenter Roeck <linux@...ck-us.net>,
Florian Fainelli <f.fainelli@...il.com>,
kernel@...oirfairelinux.com
Subject: Re: [PATCH 1/2] net: dsa: use DEVICE_ATTR_RW to declare temp1_max
Hello.
On 04/16/2015 09:38 PM, Vivien Didelot wrote:
> Since commit da4759c, sysfs will only use the permissions returned by
Please also specify that commit's summary line in parens.
> is_visible, instead of OR'ing them with the default file mode.
> This allows us to declare temp1_max with the DEVICE_ATTR_RW macro and
> just return the desired permissions for the hwmon sysfs attributes in
> dsa_hwmon_attrs_visible.
> Also, allow temp1_max to be write-only if set_temp_limit is provided,
> but not get_temp_limit.
> Signed-off-by: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists