lkml.org 
[lkml]   [2017]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: arizona-ldo1: constify regulator_ops structure
On Sat, Jan 28, 2017 at 07:08:41PM +0530, Bhumika Goyal wrote:
> Declare regulator_ops structure as const as it is only stored in the ops
> field of a regulator_desc structure. This field is of type const, so
> regulator_ops structures having this property can be made const too.
>
> File size before: drivers/regulator/arizona-ldo1.o
> text data bss dec hex filename
> 1890 720 0 2610 a32 drivers/regulator/arizona-ldo1.o
>
> File size after: drivers/regulator/arizona-ldo1.o
> text data bss dec hex filename
> 2402 192 0 2594 a22 drivers/regulator/arizona-ldo1.o
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---

Patch looks fine but CCing patches@opensource.wolfsonmicro.com on
patches to the Arizona driver would be greatly appreciated.

Thanks,
Charles

\
 
 \ /
  Last update: 2017-02-01 16:08    [W:0.047 / U:2.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site