Re: [RFC PATCH 1/2] regmap: add configurable lock class key for lockdep

From: Mark Brown
Date: Mon Jun 29 2015 - 11:34:34 EST


On Mon, Jun 29, 2015 at 04:18:11PM +0200, Lars-Peter Clausen wrote:

Please delete unneeded context from replies.

> Leaves us pretty much with only two options. Either add a lock key pointer
> to regmap_config which needs to be manually initialized. Or wrap all
> regmap_init() variants to create a static lock key. I'd slightly prefer the
> later. We can avoid most of the boiler-plate code by using some helper
> macros to generate the wrappers.

It's better to keep the bodges in the core, yes.

Attachment: signature.asc
Description: Digital signature