Re: [PATCH] regulator: userspace: use sysfs_create_group

From: Felipe Balbi
Date: Mon Aug 10 2009 - 02:05:33 EST


On Mon, Aug 10, 2009 at 07:20:34AM +0200, ext Mike Rapoport wrote:
>
>
> Felipe Balbi wrote:
> > Signed-off-by: Felipe Balbi <me@xxxxxxxxxxxxxxx>
> > ---
>
> NAK
>
> > drivers/regulator/userspace-consumer.c | 44 ++++++++++++++++----------------
> > 1 files changed, 22 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/regulator/userspace-consumer.c b/drivers/regulator/userspace-consumer.c
> > index 06d2fa9..a7e8e0b 100644
> > --- a/drivers/regulator/userspace-consumer.c
> > +++ b/drivers/regulator/userspace-consumer.c
> > @@ -93,16 +93,20 @@ static ssize_t reg_set_state(struct device *dev, struct device_attribute *attr,
> > static DEVICE_ATTR(name, 0444, reg_show_name, NULL);
> > static DEVICE_ATTR(state, 0644, reg_show_state, reg_set_state);
> >
> > -static struct device_attribute *attributes[] = {
> > - &dev_attr_name,
> > - &dev_attr_state,
> > +static struct attribute *attributes[] = {
> > + &dev_attr_name.attr,
> > + &dev_attr_state.attr,
>
> NULL?
> Except that patch is Ok.

oops, sorry for that, here's updated version

================================ CUT HERE =====================================