OSDN Git Service

iio: accel: bma180: Use explicit member assignment
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Dec 2019 21:38:18 +0000 (22:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Dec 2019 15:20:08 +0000 (15:20 +0000)
commit9436abc40139503a7cea22a96437697d048f31c0
tree4863a3498d42bbe08d19907758cc7232da185311
parentc35aae7443023c08d406c9077c9e842b48cdb22f
iio: accel: bma180: Use explicit member assignment

This uses the C99 explicit .member assignment for the
variant data in struct bma180_part_info. This makes it
easier to understand and add new variants.

Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bma180.c