OSDN Git Service

staging: iio: cdc: ad7764: Push locking down into case statements in read/write_raw
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 26 Jun 2022 12:29:28 +0000 (13:29 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 15 Aug 2022 21:30:00 +0000 (22:30 +0100)
commitb1f567bde7e12e7671d8b0015ad3cbff8f3a8d3b
tree5079c38192079ff57a3bd6589dcdab8f4acb1141
parent5d54564e47435a5c1c1afa63c1d64908609cd545
staging: iio: cdc: ad7764: Push locking down into case statements in read/write_raw

Not all paths require any locking at all. So to simplify the
removal of such locking push the locks down into the individual
case statements.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220626122938.582107-8-jic23@kernel.org
drivers/staging/iio/cdc/ad7746.c