Re: [PWM v9 1/3] PWM: Implement a generic PWM framework

From: Greg KH
Date: Thu Apr 14 2011 - 16:02:29 EST


On Thu, Apr 14, 2011 at 01:49:27PM -0600, Grant Likely wrote:
> > +static struct class pwm_class = {
> > +       .name           = "pwm",
> > +       .owner          = THIS_MODULE,
> > +       .dev_attrs      = pwm_dev_attrs,
> > +};
>
> >From my understanding, class is deprecated. I believe you should be
> using bus_type directly now. Check with Greg and Kay.

Yes, that is correct, please don't create new classes if at all
possible. And this code looks like it is fine to use a bus_type.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/