Re: [PATCH 1/1] iio: accel: bma400: add PM_SLEEP support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 15, 2020 at 08:44:59AM +0300, Andy Shevchenko wrote:
> On Wed, Jul 15, 2020 at 8:05 AM Dan Robertson <dan@xxxxxxxxxxxxxxx> wrote:
> >
> >  - Add system sleep ops if CONFIG_PM_SLEEP is set.
> >  - Add attribute for setting the power mode of the
> >    device.
> 
> ...
> 
> > -static const struct iio_chan_spec_ext_info bma400_ext_info[] = {
> 
> > -};
> > -
> > -#define BMA400_ACC_CHANNEL(_axis) { \
> 
> > -}
> > -
> > -static const struct iio_chan_spec bma400_channels[] = {
> 
> > -};
> > -
> 
> I'm not sure how this part is related.
> 
> ...

Moving things around for the power mode switching endpoint.

> > +static const char * const bma400_power_modes[] = {
> > +       "sleep",
> > +       "low-power",
> > +       "normal"
> 
> Missed comma.
> 
> > +};
> 
> ...
> 
> > +#ifdef CONFIG_PM_SLEEP
> 
> __maybe_unused looks better.

Good point.

Thanks for the review! I'll address your comments in v2 of the patchset.

Cheers,

 - Dan

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux