Re: [PATCH 1/9] regulator: tps65217: Enable suspend configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Wednesday 22 June 2016 03:46 PM, Mark Brown wrote:
On Wed, Jun 22, 2016 at 03:44:02PM +0530, Keerthy wrote:

Hence saving it in a static array and using it later in the ops functions to
disable or enable regulator during suspend.

Why a static array and not part of the dynamically allocated driver
data?

Okay. That can be done.
I can introduce another integer pointer to struct tps65217 which currently holds the driver data.

I will allocate memory for TPS65217_NUM_REGULATOR strobes during regulator probe. Is this approach okay?


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux