Re: [RFC 1/4] power_supply: Introduce charging object table

From: 'Sebastian Reichel'
Date: Mon Mar 09 2015 - 10:09:00 EST


Hi,

On Mon, Mar 09, 2015 at 12:26:21PM +0000, Tc, Jenny wrote:
> > > + char name[PSY_MAX_BAT_NAME_LEN];
> >
> > char *name;
> >
> > No need for arbitrary length limitation.
>
> The length limitation is introduced to form a packed structure so that
> the data can be read directly from memory without parsing.

This reason is ok for a device driver, but not for a kernel
subsystem.

-- Sebastian

Attachment: signature.asc
Description: Digital signature