Re: [RFC PATCH v2 1/4] regulator: Add helper function to get "poweroff-source" property

From: Mark Brown
Date: Fri Oct 10 2014 - 07:54:51 EST


On Fri, Oct 10, 2014 at 12:47:08PM +0100, Grant Likely wrote:

> This is an extremely simple wrapper. It may be best to simply make it
> a static inline. It is also generic enough that I don't have a problem
> with it living in include/linux/of.h; but of_regulator.h would be fine
> too.

I think of.h might be a better idea - it's not something that needs to
be regulator specific, system power controllers could provide the same
functionality but may not offer any regulator control to Linux.

Attachment: signature.asc
Description: Digital signature