Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1719458

Re: [PATCH 11/15] remoteproc: make device_type const

From Bjorn Andersson <bjorn.andersson@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 11/15] remoteproc: make device_type const
Date 2017-08-24 19:30 +0200
Message-ID <ui478-14g-17@gated-at.bofh.it> (permalink)
References <ug7iN-7kG-3@gated-at.bofh.it> <ug7iP-7kG-45@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat 19 Aug 01:22 PDT 2017, Bhumika Goyal wrote:

> Make this const as it is only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>

Applied, thanks.

Regards,
Bjorn

> ---
>  drivers/remoteproc/remoteproc_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index 364ef28..48b2c5d 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
>  	kfree(rproc);
>  }
>  
> -static struct device_type rproc_type = {
> +static const struct device_type rproc_type = {
>  	.name		= "remoteproc",
>  	.release	= rproc_type_release,
>  };
> -- 
> 1.9.1
> 

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 00/15] drivers: make device_type const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-19 10:30 +0200
  [PATCH 04/15] [media] rc: make device_type const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-19 10:30 +0200
  [PATCH 11/15] remoteproc: make device_type const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-19 10:30 +0200
    Re: [PATCH 11/15] remoteproc: make device_type const Bjorn Andersson <bjorn.andersson@linaro.org> - 2017-08-24 19:30 +0200

csiph-web