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
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
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.