Re: [PATCH 05/15] mei: make device_type const
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Bhumika Goyal <bhumirks@xxxxxxxxx>, "julia.lawall@xxxxxxx" <julia.lawall@xxxxxxx>, "bp@xxxxxxxxx" <bp@xxxxxxxxx>, "mchehab@xxxxxxxxxx" <mchehab@xxxxxxxxxx>, "Vetter, Daniel" <daniel.vetter@xxxxxxxxx>, "jani.nikula@xxxxxxxxxxxxxxx" <jani.nikula@xxxxxxxxxxxxxxx>, "seanpaul@xxxxxxxxxxxx" <seanpaul@xxxxxxxxxxxx>, "airlied@xxxxxxxx" <airlied@xxxxxxxx>, "g.liakhovetski@xxxxxx" <g.liakhovetski@xxxxxx>, "dwmw2@xxxxxxxxxxxxx" <dwmw2@xxxxxxxxxxxxx>, "computersforpeace@xxxxxxxxx" <computersforpeace@xxxxxxxxx>, "boris.brezillon@xxxxxxxxxxxxxxxxxx" <boris.brezillon@xxxxxxxxxxxxxxxxxx>, "marek.vasut@xxxxxxxxx" <marek.vasut@xxxxxxxxx>, "richard@xxxxxx" <richard@xxxxxx>, "cyrille.pitchen@xxxxxxxxxx" <cyrille.pitchen@xxxxxxxxxx>, "peda@xxxxxxxxxx" <peda@xxxxxxxxxx>, "kishon@xxxxxx" <kishon@xxxxxx>, "bhelgaas@xxxxxxxxxx" <bhelgaas@xxxxxxxxxx>, "thierry.reding@xxxxxxxxx" <thierry.reding@xxxxxxxxx>, "jonathanh@xxxxxxxxxx" <jonathanh@xxxxxxxxxx>, "dvhart@xxxxxxxxxxxxx" <dvhart@xxxxxxxxxxxxx>, "andy@xxxxxxxxxxxxx" <andy@xxxxxxxxxxxxx>, "ohad@xxxxxxxxxx" <ohad@xxxxxxxxxx>, "bjorn.andersson@xxxxxxxxxx" <bjorn.andersson@xxxxxxxxxx>, "freude@xxxxxxxxxx" <freude@xxxxxxxxxx>, "schwidefsky@xxxxxxxxxx" <schwidefsky@xxxxxxxxxx>, "heiko.carstens@xxxxxxxxxx" <heiko.carstens@xxxxxxxxxx>, "jth@xxxxxxxxxx" <jth@xxxxxxxxxx>, "jejb@xxxxxxxxxxxxxxxxxx" <jejb@xxxxxxxxxxxxxxxxxx>, "martin.petersen@xxxxxxxxxx" <martin.petersen@xxxxxxxxxx>, "lduncan@xxxxxxxx" <lduncan@xxxxxxxx>, "cleech@xxxxxxxxxx" <cleech@xxxxxxxxxx>, "johan@xxxxxxxxxx" <johan@xxxxxxxxxx>, "elder@xxxxxxxxxx" <elder@xxxxxxxxxx>, "gregkh@xxxxxxxxxxxxxxxxxxx" <gregkh@xxxxxxxxxxxxxxxxxxx>, "heikki.krogerus@xxxxxxxxxxxxxxx" <heikki.krogerus@xxxxxxxxxxxxxxx>, "linux-edac@xxxxxxxxxxxxxxx" <linux-edac@xxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "dri-devel@xxxxxxxxxxxxxxxxxxxxx" <dri-devel@xxxxxxxxxxxxxxxxxxxxx>, "linux-media@xxxxxxxxxxxxxxx" <linux-media@xxxxxxxxxxxxxxx>, "linux-mtd@xxxxxxxxxxxxxxxxxxx" <linux-mtd@xxxxxxxxxxxxxxxxxxx>, "linux-pci@xxxxxxxxxxxxxxx" <linux-pci@xxxxxxxxxxxxxxx>, "linux-tegra@xxxxxxxxxxxxxxx" <linux-tegra@xxxxxxxxxxxxxxx>, "platform-driver-x86@xxxxxxxxxxxxxxx" <platform-driver-x86@xxxxxxxxxxxxxxx>, "linux-remoteproc@xxxxxxxxxxxxxxx" <linux-remoteproc@xxxxxxxxxxxxxxx>, "linux-s390@xxxxxxxxxxxxxxx" <linux-s390@xxxxxxxxxxxxxxx>, "fcoe-devel@xxxxxxxxxxxxx" <fcoe-devel@xxxxxxxxxxxxx>, "linux-scsi@xxxxxxxxxxxxxxx" <linux-scsi@xxxxxxxxxxxxxxx>, "open-iscsi@xxxxxxxxxxxxxxxx" <open-iscsi@xxxxxxxxxxxxxxxx>, "greybus-dev@xxxxxxxxxxxxxxxx" <greybus-dev@xxxxxxxxxxxxxxxx>, "devel@xxxxxxxxxxxxxxxxxxxx" <devel@xxxxxxxxxxxxxxxxxxxx>, "linux-usb@xxxxxxxxxxxxxxx" <linux-usb@xxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 05/15] mei: make device_type const
- From: "Winkler, Tomas" <tomas.winkler@xxxxxxxxx>
- Date: Sat, 19 Aug 2017 16:48:37 +0000
- Accept-language: en-US
- Dlp-product: dlpe-windows
- Dlp-reaction: no-action
- Dlp-version: 10.0.102.7
- In-reply-to: <1503130946-2854-6-git-send-email-bhumirks@gmail.com>
- References: <1503130946-2854-1-git-send-email-bhumirks@gmail.com> <1503130946-2854-6-git-send-email-bhumirks@gmail.com>
- Thread-index: AQHTGMSb186po7/R/EucLSQ73lApX6KLhlTw
- Thread-topic: [PATCH 05/15] mei: make device_type const
> Subject: [PATCH 05/15] mei: make device_type const
>
> 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@xxxxxxxxx>
> ---
> drivers/misc/mei/bus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index
> 40c7908..1ac10cb 100644
> --- a/drivers/misc/mei/bus.c
> +++ b/drivers/misc/mei/bus.c
> @@ -845,7 +845,7 @@ static void mei_cl_bus_dev_release(struct device
> *dev)
> kfree(cldev);
> }
>
> -static struct device_type mei_cl_device_type = {
> +static const struct device_type mei_cl_device_type = {
> .release = mei_cl_bus_dev_release,
> };
>
LGTM
Thanks
Tomas
_______________________________________________
greybus-dev mailing list
greybus-dev@xxxxxxxxxxxxxxxx
https://lists.linaro.org/mailman/listinfo/greybus-dev
[Index of Archives]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]
[Asterisk Books]