Search Linux Wireless

RE: [PATCH] nfc: microread: mei: constify mei_cl_device_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> mei_cl_device_id are not supposed to change at runtime.
> mei driver is working with const 'id_table'. So mark the non-const
> mei_cl_device_id structs as const.
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
Ack.
>  drivers/nfc/microread/mei.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/nfc/microread/mei.c b/drivers/nfc/microread/mei.c index
> eb5eddf..70bf7a1 100644
> --- a/drivers/nfc/microread/mei.c
> +++ b/drivers/nfc/microread/mei.c
> @@ -66,7 +66,7 @@ static int microread_mei_remove(struct mei_cl_device
> *cldev)
>  	return 0;
>  }
> 
> -static struct mei_cl_device_id microread_mei_tbl[] = {
> +static const struct mei_cl_device_id microread_mei_tbl[] = {
>  	{ MICROREAD_DRIVER_NAME, MEI_NFC_UUID,
> MEI_CL_VERSION_ANY},
> 
>  	/* required last entry */
> --
> 2.7.4




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux