[PATCH v5 1/7] regulator: core: add const qualifier to ops in struct regulator_desc

2014-08-13 Thread Guodong Xu
struct regulator_ops *ops is a member in struct regulator_desc, which gets its value from individual regulator driver upon regulator_register() and is used by regulator core APIs. It's not allowed for regulator core to modify any of these callbacks in *ops. Add 'const' qualifier to enforce that.

[PATCH v5 1/7] regulator: core: add const qualifier to ops in struct regulator_desc

2014-08-13 Thread Guodong Xu
struct regulator_ops *ops is a member in struct regulator_desc, which gets its value from individual regulator driver upon regulator_register() and is used by regulator core APIs. It's not allowed for regulator core to modify any of these callbacks in *ops. Add 'const' qualifier to enforce that.