Skip to contentSkip to conversation

iio: sw_trigger: make the function argument as const

PATCH New Bhumika Goyal 1 participant 1 message Oct 11, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: sw_trigger: make the function argument as const

This is a follow-up patch for:
https://patchwork.kernel.org/patch/9999649/

Make the argument of the function iio_swt_group_init_type_name const as it is only passed to the function config_group_init_type_name having the argument as const.

---
 include/linux/iio/sw_trigger.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/sw_trigger.h +1 -1
index c97eab6..0c43738 100644
@@ -60,7 +60,7 @@ struct iio_sw_trigger *to_iio_sw_trigger(struct config_item *item)
 static inline
 void iio_swt_group_init_type_name(struct iio_sw_trigger *t,
 				  const char *name,
-				  struct config_item_type *type)
+				  const struct config_item_type *type)
 {
 #if IS_ENABLED(CONFIG_CONFIGFS_FS)
 	config_group_init_type_name(&t->group, name, type);
Signature · 1 line
1.9.1