]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: gp2ap020a00f: Return directly from the switch cases
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Feb 2026 03:40:14 +0000 (21:40 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:09:45 +0000 (21:09 +0000)
commitf6d460ec01556d8c5871a0abbb5baa31f8b0d630
tree2f570125ec7c046f57bd8ef8f0b5de467c779d3e
parentc579a6a7a7454b2de83a1f3841a60fd20ec9ef5c
iio: light: gp2ap020a00f: Return directly from the switch cases

Return directly from the switch cases which makes code easier to follow.
In some cases convert pieces to the standard pattern which also unifies
it with the accepted kernel practices.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/gp2ap020a00f.c