]> git.itanic.dy.fi Git - linux-stable/commit
iio: buffer: Use IIO_SEPARATE instead of a hard-coded 0
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 17 Dec 2023 16:41:45 +0000 (17:41 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 Dec 2023 10:48:29 +0000 (10:48 +0000)
commit4bb104e4f30d2202657b77c948f9ef1366ac438e
treeb29c4089e4cacde49bac36d70c16e75152a93bb4
parente9215fcca2561b208c78359110ee4009b454f761
iio: buffer: Use IIO_SEPARATE instead of a hard-coded 0

Use an explicit IIO_SEPARATE instead of 0 for the 'shared_by' parameter
when calling __iio_add_chan_devattr().

For some reason, commit 3704432fb1fd ("iio: refactor info mask and ext_info
attribute creation.") updated only 1 place out of 4.
Update the remaining ones now.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/1d17f57423172fcb9d9797cfe7c8282f356049c2.1702831285.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-buffer.c