]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: iio: adis16209: Adjust a switch statement
authorShreeya Patel <shreeya.patel23498@gmail.com>
Sun, 4 Mar 2018 12:43:12 +0000 (18:13 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 7 Mar 2018 21:06:52 +0000 (21:06 +0000)
commit39d9d903e4cf39a2e496c157b2f621398534568d
tree41a53d13edf09aa3cf802ac428ff238fbcc45d00
parent275c5299422ee63cbf53ecf8cbaf4aaf8893a9f7
Staging: iio: adis16209: Adjust a switch statement

Adjust a switch block to explicitly match channels and
return -EINVAL as default case which makes the code
semantically more clear.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/accel/adis16209.c