Re: [PATCH v3 03/28] staging: iio: tsl2583: check if chip is suspended in in_illuminance_calibrate_store
From: Brian Masney
Date: Sat Nov 12 2016 - 11:37:31 EST
On Sat, Nov 12, 2016 at 04:27:32PM +0000, Jonathan Cameron wrote:
> On 12/11/16 16:24, Jonathan Cameron wrote:
> > On 10/11/16 09:25, Brian Masney wrote:
> >> in_illuminance_calibrate_store() did not check to see if the chip is
> >> suspended. This patch adds the proper check. The return value from
> >> taos_als_calibrate() was also not checked in this function, so the
> >> proper check was also added while changes are being made here.
> >>
> >> Signed-off-by: Brian Masney <masneyb@xxxxxxxxxxxxx>
> > Applied.
> And backed out. It doesn't build :(
>
> drivers/staging/iio/light/tsl2583.c:511:10: error: âstruct tsl2583_chipâ has no member named âsuspendedâ
> if (chip->suspended) {
> ^~
Bummer! I'll get this fixed and send out an updated series in a little
bit.
Brian