On Wed, Aug 20, 2014 at 1:43 AM, Peter Meerwald <pmeerw@xxxxxxxxxx> wrote: > 8-bit signed; 0 LSB @ 24 °C, 0.5 °C per LSB > > Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx> > Cc: Oleksandr Kravchenko <o.v.kravchenko@xxxxxxxxxxxxxxx> > --- > drivers/iio/accel/bma180.c | 80 ++++++++++++++++++++++++++++++++++------------ > 1 file changed, 59 insertions(+), 21 deletions(-) > > diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c > index aa7566f..91260a0 100644 > --- a/drivers/iio/accel/bma180.c > +++ b/drivers/iio/accel/bma180.c > @@ -29,6 +29,7 @@ > /* Register set */ > #define BMA180_CHIP_ID 0x00 /* Need to distinguish BMA180 from other */ > #define BMA180_ACC_X_LSB 0x02 /* First of 6 registers of accel data */ > +#define BMA180_TEMP 0x08 > #define BMA180_CTRL_REG0 0x0d > #define BMA180_RESET 0x10 > #define BMA180_BW_TCS 0x20 > @@ -84,27 +85,37 @@ struct bma180_data { > char *buff; > }; > > -enum bma180_axis { > +enum bma180_chan { > AXIS_X, > AXIS_Y, > AXIS_Z, > + TEMP > }; Nit: For future patches, add a semicolon after TEMP. Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html