]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit0df8baeab1ee2a5ccd3c725a44a431fcc63fe416
tree41a53d13edf09aa3cf802ac428ff238fbcc45d00
parent1026bb35371a499f977174f9f297ce8e2dfd1efb
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