Re: [PATCH v2] power: supply: da9150-fg: remove VLA usage

2018-03-12 Thread Sebastian Reichel
Hi, On Fri, Mar 09, 2018 at 12:27:08PM -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > DA9150_QIF_LONG_SIZE (4 bytes) is the biggest size of an attribute which can > be accessed [1]. > > Fixed as part of the

Re: [PATCH v2] power: supply: da9150-fg: remove VLA usage

2018-03-12 Thread Sebastian Reichel
Hi, On Fri, Mar 09, 2018 at 12:27:08PM -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > DA9150_QIF_LONG_SIZE (4 bytes) is the biggest size of an attribute which can > be accessed [1]. > > Fixed as part of the

RE: [PATCH v2] power: supply: da9150-fg: remove VLA usage

2018-03-12 Thread Adam Thomson
On 09 March 2018 18:27, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > DA9150_QIF_LONG_SIZE (4 bytes) is the biggest size of an attribute which can > be accessed [1]. > > Fixed as part of the directive to remove all

RE: [PATCH v2] power: supply: da9150-fg: remove VLA usage

2018-03-12 Thread Adam Thomson
On 09 March 2018 18:27, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > DA9150_QIF_LONG_SIZE (4 bytes) is the biggest size of an attribute which can > be accessed [1]. > > Fixed as part of the directive to remove all