Re: [PATCH 4/5] mfd: arizona: Use num_core_supplies in arizona_dev_exit

2014-06-17 Thread Lee Jones
On Mon, 02 Jun 2014, Charles Keepax wrote: > Currently we call regulator_bulk_disable with > ARRAY_SIZE(arizona->core_supplies), however this array may be larger > than the number of supplies actually used by the chip we are dealing > with. Use the provided num_core_supplies member instead, so

Re: [PATCH 4/5] mfd: arizona: Use num_core_supplies in arizona_dev_exit

2014-06-17 Thread Lee Jones
On Mon, 02 Jun 2014, Charles Keepax wrote: Currently we call regulator_bulk_disable with ARRAY_SIZE(arizona-core_supplies), however this array may be larger than the number of supplies actually used by the chip we are dealing with. Use the provided num_core_supplies member instead, so that we

[PATCH 4/5] mfd: arizona: Use num_core_supplies in arizona_dev_exit

2014-06-02 Thread Charles Keepax
Currently we call regulator_bulk_disable with ARRAY_SIZE(arizona->core_supplies), however this array may be larger than the number of supplies actually used by the chip we are dealing with. Use the provided num_core_supplies member instead, so that we only disable supplies which actually exist.

[PATCH 4/5] mfd: arizona: Use num_core_supplies in arizona_dev_exit

2014-06-02 Thread Charles Keepax
Currently we call regulator_bulk_disable with ARRAY_SIZE(arizona-core_supplies), however this array may be larger than the number of supplies actually used by the chip we are dealing with. Use the provided num_core_supplies member instead, so that we only disable supplies which actually exist.