Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: Add blank lines after declarations.

As reported by checkpatch.pl add blank lines after declarations.

Signed-off-by: Joe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220727181855.589052-2-joetalbott@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Joe Simmons-Talbott and committed by
Jonathan Cameron
9d9ec8d0 568035b0

+9
+1
drivers/iio/industrialio-buffer.c
··· 940 940 static void iio_buffer_demux_free(struct iio_buffer *buffer) 941 941 { 942 942 struct iio_demux_table *p, *q; 943 + 943 944 list_for_each_entry_safe(p, q, &buffer->demux_list, l) { 944 945 list_del(&p->l); 945 946 kfree(p);
+7
drivers/iio/industrialio-core.c
··· 236 236 struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev) 237 237 { 238 238 struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev); 239 + 239 240 return iio_dev_opaque->debugfs_dentry; 240 241 } 241 242 EXPORT_SYMBOL_GPL(iio_get_debugfs_dentry); ··· 448 447 static void iio_device_unregister_debugfs(struct iio_dev *indio_dev) 449 448 { 450 449 struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev); 450 + 451 451 debugfs_remove_recursive(iio_dev_opaque->debugfs_dentry); 452 452 } 453 453 ··· 1023 1021 int ret = 0; 1024 1022 char *name = NULL; 1025 1023 char *full_postfix; 1024 + 1026 1025 sysfs_attr_init(&dev_attr->attr); 1027 1026 1028 1027 /* Build up postfix of <extend_name>_<modifier>_postfix */ ··· 1358 1355 1359 1356 if (chan->ext_info) { 1360 1357 unsigned int i = 0; 1358 + 1361 1359 for (ext_info = chan->ext_info; ext_info->name; ext_info++) { 1362 1360 ret = __iio_add_chan_devattr(ext_info->name, 1363 1361 chan, ··· 1407 1403 char *buf) 1408 1404 { 1409 1405 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 1406 + 1410 1407 return sysfs_emit(buf, "%s\n", indio_dev->name); 1411 1408 } 1412 1409 ··· 1417 1412 char *buf) 1418 1413 { 1419 1414 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 1415 + 1420 1416 return sysfs_emit(buf, "%s\n", indio_dev->label); 1421 1417 } 1422 1418 ··· 1783 1777 struct iio_dev_opaque *iio_dev_opaque = 1784 1778 container_of(inode->i_cdev, struct iio_dev_opaque, chrdev); 1785 1779 struct iio_dev *indio_dev = &iio_dev_opaque->indio_dev; 1780 + 1786 1781 kfree(ib); 1787 1782 clear_bit(IIO_BUSY_BIT_POS, &iio_dev_opaque->flags); 1788 1783 iio_device_put(indio_dev);
+1
drivers/iio/industrialio-trigger.c
··· 50 50 char *buf) 51 51 { 52 52 struct iio_trigger *trig = to_iio_trigger(dev); 53 + 53 54 return sysfs_emit(buf, "%s\n", trig->name); 54 55 } 55 56