* [PATCH] iio: sw_device: make the function argument as const
@ 2017-10-11 14:05 Bhumika Goyal
2017-10-14 18:21 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-10-11 14:05 UTC (permalink / raw)
To: julia.lawall, jic23, knaack.h, lars, pmeerw, linux-iio, linux-kernel
Cc: Bhumika Goyal
This is a follow-up patch for:
https://patchwork.kernel.org/patch/9999649/
Make the argument of the function iio_swd_group_init_type_name const as
it is only passed to the function config_group_init_type_name having the
argument as const.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
This change allows a lot of config_item_type structures to be const.
include/linux/iio/sw_device.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/iio/sw_device.h b/include/linux/iio/sw_device.h
index fa79319..8642b91 100644
--- a/include/linux/iio/sw_device.h
+++ b/include/linux/iio/sw_device.h
@@ -60,7 +60,7 @@ struct iio_sw_device *to_iio_sw_device(struct config_item *item)
static inline
void iio_swd_group_init_type_name(struct iio_sw_device *d,
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(&d->group, name, type);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: sw_device: make the function argument as const
2017-10-11 14:05 [PATCH] iio: sw_device: make the function argument as const Bhumika Goyal
@ 2017-10-14 18:21 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2017-10-14 18:21 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, knaack.h, lars, pmeerw, linux-iio, linux-kernel
On Wed, 11 Oct 2017 16:05:47 +0200
Bhumika Goyal <bhumirks@gmail.com> wrote:
> This is a follow-up patch for:
> https://patchwork.kernel.org/patch/9999649/
>
> Make the argument of the function iio_swd_group_init_type_name const as
> it is only passed to the function config_group_init_type_name having the
> argument as const.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
As mentioned before, please put together a single series with the
dependencies and the patches making use of them.
Otherwise, this is going to take a long time to merge.
Jonathan
> ---
> This change allows a lot of config_item_type structures to be const.
>
> include/linux/iio/sw_device.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/iio/sw_device.h b/include/linux/iio/sw_device.h
> index fa79319..8642b91 100644
> --- a/include/linux/iio/sw_device.h
> +++ b/include/linux/iio/sw_device.h
> @@ -60,7 +60,7 @@ struct iio_sw_device *to_iio_sw_device(struct config_item *item)
> static inline
> void iio_swd_group_init_type_name(struct iio_sw_device *d,
> 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(&d->group, name, type);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-14 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-11 14:05 [PATCH] iio: sw_device: make the function argument as const Bhumika Goyal
2017-10-14 18:21 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).