]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: bma180: Use explicit member assignment
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Dec 2019 21:38:18 +0000 (22:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 11:31:01 +0000 (13:31 +0200)
commit6b8db796c6b830fe0215956835bfb4ac8e390ef4
treebd8fac2ea06e2cc9cca4320ee870b11a466800ba
parentcae960f4cd9bf542276d9ee797b61f998dfe4523
iio: accel: bma180: Use explicit member assignment

commit 9436abc40139503a7cea22a96437697d048f31c0 upstream

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>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/bma180.c