]> git.ipfire.org Git - thirdparty/kernel/stable.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 07:12:37 +0000 (09:12 +0200)
commita7014c6404fe28bf19f3065cab3f1589483b3aa0
tree1aee5e639a060f6166e278ce1495061783b88d0d
parenta36ce1d5586215567a81048e8beb6210964325c8
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