Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 9:57 AM, Lee Jones wrote: >> >> Time to revisit this decision >> >> >> >> So, based on the fact that children device names usually contain >> >> dashes, I do not understand why hwmon would be any special in this >> >> regard. It is possible that the hwmon developers hav

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 10:22 AM, Laszlo Papp wrote: > On Tue, Feb 11, 2014 at 8:50 AM, Lee Jones wrote: >>> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >>> >> > Additionally, dashes are explicitly forbidden in hwmon >>> >> > device names. >>> >> >>> >> Also, where is that documented

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 8:50 AM, Lee Jones wrote: >> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >> >> > Additionally, dashes are explicitly forbidden in hwmon >> >> > device names. >> >> >> >> Also, where is that documented? >> > >> > In Documentation/hwmon/sysfs-interface: >> > >> >

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Lee Jones
> >> Time to revisit this decision > >> > >> So, based on the fact that children device names usually contain > >> dashes, I do not understand why hwmon would be any special in this > >> regard. It is possible that the hwmon developers have not faced much > >> MFD situation before, and so, this

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 9:47 AM, Lee Jones wrote: >> >> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >> >> >> > Additionally, dashes are explicitly forbidden in hwmon >> >> >> > device names. >> >> >> >> >> >> Also, where is that documented? >> >> > >> >> > In Documentation/hwmon/sysfs

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Lee Jones
> >> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: > >> >> > Additionally, dashes are explicitly forbidden in hwmon > >> >> > device names. > >> >> > >> >> Also, where is that documented? > >> > > >> > In Documentation/hwmon/sysfs-interface: > >> > > >> > * > >> > * G

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 8:58 AM, Laszlo Papp wrote: > On Tue, Feb 11, 2014 at 8:50 AM, Lee Jones wrote: >>> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >>> >> > Additionally, dashes are explicitly forbidden in hwmon >>> >> > device names. >>> >> >>> >> Also, where is that documented?

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 8:49 AM, Jean Delvare wrote: > Le Tuesday 11 February 2014 à 08:28 +, Laszlo Papp a écrit : >> On Tue, Feb 11, 2014 at 7:50 AM, Jean Delvare wrote: >> > Hi Laszlo, >> > >> > On Tue, 11 Feb 2014 03:13:37 +, Laszlo Papp wrote: >> >> On Mon, Feb 10, 2014 at 4:38 PM, J

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 8:50 AM, Lee Jones wrote: >> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >> >> > Additionally, dashes are explicitly forbidden in hwmon >> >> > device names. >> >> >> >> Also, where is that documented? >> > >> > In Documentation/hwmon/sysfs-interface: >> > >> >

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Lee Jones
> >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: > >> > Additionally, dashes are explicitly forbidden in hwmon > >> > device names. > >> > >> Also, where is that documented? > > > > In Documentation/hwmon/sysfs-interface: > > > > * > > * Global attributes * > > ***

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Jean Delvare
Le Tuesday 11 February 2014 à 08:28 +, Laszlo Papp a écrit : > On Tue, Feb 11, 2014 at 7:50 AM, Jean Delvare wrote: > > Hi Laszlo, > > > > On Tue, 11 Feb 2014 03:13:37 +, Laszlo Papp wrote: > >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: > >> > Additionally, dashes are explicitl

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 7:50 AM, Jean Delvare wrote: > Hi Laszlo, > > On Tue, 11 Feb 2014 03:13:37 +, Laszlo Papp wrote: >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >> > Additionally, dashes are explicitly forbidden in hwmon >> > device names. >> >> Also, where is that documented?

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-11 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 7:50 AM, Jean Delvare wrote: > Hi Laszlo, > > On Tue, 11 Feb 2014 03:13:37 +, Laszlo Papp wrote: >> On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >> > Additionally, dashes are explicitly forbidden in hwmon >> > device names. >> >> Also, where is that documented?

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Jean Delvare
Hi Laszlo, On Tue, 11 Feb 2014 03:13:37 +, Laszlo Papp wrote: > On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: > > Additionally, dashes are explicitly forbidden in hwmon > > device names. > > Also, where is that documented? In Documentation/hwmon/sysfs-interface:

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Tue, Feb 11, 2014 at 3:23 AM, Laszlo Papp wrote: > On Mon, Feb 10, 2014 at 11:10 PM, Guenter Roeck wrote: >> On Mon, Feb 10, 2014 at 06:59:55PM +, Laszlo Papp wrote: >> I think I'll let Jean handle this one. > > Guys, please be a bit more definite. > > We should get over this long ping-pon

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Mon, Feb 10, 2014 at 11:10 PM, Guenter Roeck wrote: > On Mon, Feb 10, 2014 at 06:59:55PM +, Laszlo Papp wrote: > I think I'll let Jean handle this one. Guys, please be a bit more definite. We should get over this long ping-pong game. It has been clearly stated that either way is fine, and

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: > Additionally, dashes are explicitly forbidden in hwmon > device names. Also, where is that documented? I do not think you can make such a decision, and you will realize that once you begin to think a bit out of the box and look around. See h

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Guenter Roeck
On Mon, Feb 10, 2014 at 06:59:55PM +, Laszlo Papp wrote: > On Mon, Feb 10, 2014 at 4:53 PM, wrote: > > Quoting Jean Delvare : > > > >> > >> That being said, going with MFD in this case seems quite overkill to > >> me. MFD makes a lot of sense when each function has its own resources. > >> As

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Mon, Feb 10, 2014 at 4:53 PM, wrote: > Quoting Jean Delvare : > >> >> That being said, going with MFD in this case seems quite overkill to >> me. MFD makes a lot of sense when each function has its own resources. >> As this isn't the case here, a single driver registering both an hwmon >> inte

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Jean Delvare
On Mon, 10 Feb 2014 18:27:07 +, Laszlo Papp wrote: > On Mon, Feb 10, 2014 at 5:43 PM, Jean Delvare wrote: > > On Mon, 10 Feb 2014 16:58:53 +, Lee Jones wrote: > >> > > Might be worth taking the opportunity to swap out these magic numbers > >> > > now. > >> > > >> > There's nothing magic ab

Re: [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Mon, Feb 10, 2014 at 5:43 PM, Jean Delvare wrote: > Hi Lee, > > On Mon, 10 Feb 2014 16:58:53 +, Lee Jones wrote: >> > > > static const struct i2c_device_id max6650_id[] = { >> > > > - { "max6650", 1 }, >> > > > - { "max6651", 4 }, >> > > > + { "max6650-hwmon", 1 }, >> > >

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Lee Jones
> > > > > > Might be worth taking the opportunity to swap out these magic > > > > > > numbers > > > > > > now. > > > > > > > > > > There's nothing magic about them, they tell the driver how many fans > > > > > each device supports. If you don't pass them as driver_data you'll > > > > > have > >

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Jean Delvare
On Mon, 10 Feb 2014 18:01:59 +, Lee Jones wrote: > > > > > Might be worth taking the opportunity to swap out these magic numbers > > > > > now. > > > > > > > > There's nothing magic about them, they tell the driver how many fans > > > > each device supports. If you don't pass them as driver_da

Re: [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Lee Jones
> > > > Might be worth taking the opportunity to swap out these magic numbers > > > > now. > > > > > > There's nothing magic about them, they tell the driver how many fans > > > each device supports. If you don't pass them as driver_data you'll have > > > to derive them from the device name in the

Re: [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Jean Delvare
Hi Lee, On Mon, 10 Feb 2014 16:58:53 +, Lee Jones wrote: > > > > static const struct i2c_device_id max6650_id[] = { > > > > - { "max6650", 1 }, > > > > - { "max6651", 4 }, > > > > + { "max6650-hwmon", 1 }, > > > > + { "max6651-hwmon", 4 }, > > > > No, this is not acce

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Mon, Feb 10, 2014 at 5:06 PM, Laszlo Papp wrote: > On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: >> Hi Lee, Laszlo, >> >> On Mon, 10 Feb 2014 16:08:42 +, Lee Jones wrote: >>> > In the preparation of creating an mfd driver and then refactor this one >>> > into a >>> > platform drive

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
On Mon, Feb 10, 2014 at 4:38 PM, Jean Delvare wrote: > Hi Lee, Laszlo, > > On Mon, 10 Feb 2014 16:08:42 +, Lee Jones wrote: >> > In the preparation of creating an mfd driver and then refactor this one >> > into a >> > platform driver in order to add some pinctrl functionality to the chip, it

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Lee Jones
> > > static const struct i2c_device_id max6650_id[] = { > > > - { "max6650", 1 }, > > > - { "max6651", 4 }, > > > + { "max6650-hwmon", 1 }, > > > + { "max6651-hwmon", 4 }, > > No, this is not acceptable, sorry. This will change the name of the > hwmon device as seen from user-space, breaking any

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread linux
Quoting Jean Delvare : That being said, going with MFD in this case seems quite overkill to me. MFD makes a lot of sense when each function has its own resources. As this isn't the case here, a single driver registering both an hwmon interface and a pinctrl interface would seem sufficient to me

Re: [lm-sensors] [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Jean Delvare
Hi Lee, Laszlo, On Mon, 10 Feb 2014 16:08:42 +, Lee Jones wrote: > > In the preparation of creating an mfd driver and then refactor this one > > into a > > platform driver in order to add some pinctrl functionality to the chip, it > > is > > necessary to start the series with this change so

Re: [PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Lee Jones
> In the preparation of creating an mfd driver and then refactor this one into a > platform driver in order to add some pinctrl functionality to the chip, it is > necessary to start the series with this change so that the mfd driver can > refer > to the proper name in the subsequent change without

[PATCH] hwmon: (max6650) Rename the device ids to contain the hwmon suffix

2014-02-10 Thread Laszlo Papp
In the preparation of creating an mfd driver and then refactor this one into a platform driver in order to add some pinctrl functionality to the chip, it is necessary to start the series with this change so that the mfd driver can refer to the proper name in the subsequent change without making cha