> > 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.
Agree, will fix this. Same for psy_temp_mon_table temp_mon_table -Jenny -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/