[PATCH 3/5 v7] usb: musb: core: added missing const qualifier to musb_hdrc_platform_data::config

2016-02-24 Thread Petr Kulhavy
The musb_hdrc_platform_data::config was defined as a non-const pointer. However some drivers (e.g. the ux500) set up this pointer to point to a static structure, which is potentially dangerous. Since the musb core uses the pointer in a read-only manner the const qualifier was added to protect the c

Re: [PATCH 3/5 v7] usb: musb: core: added missing const qualifier to musb_hdrc_platform_data::config

2016-02-24 Thread Felipe Balbi
Petr Kulhavy writes: > The musb_hdrc_platform_data::config was defined as a non-const pointer. > However some drivers (e.g. the ux500) set up this pointer to point to a > static structure, which is potentially dangerous. Since the musb core > uses the pointer in a read-only manner the const quali

Re: [PATCH 3/5 v7] usb: musb: core: added missing const qualifier to musb_hdrc_platform_data::config

2016-02-24 Thread Bin Liu
Hi, On Wed, Feb 24, 2016 at 05:41:28PM +0200, Felipe Balbi wrote: > Petr Kulhavy writes: > > > The musb_hdrc_platform_data::config was defined as a non-const pointer. > > However some drivers (e.g. the ux500) set up this pointer to point to a > > static structure, which is potentially dangerous.