Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700064 > unrolled thread

Re: [PATCH] input: keyboard: constify attribute_group structures.

Started byLinus Walleij <linus.walleij@linaro.org>
First post2017-07-31 15:50 +0200
Last post2017-07-31 15:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] input: keyboard: constify attribute_group structures. Linus Walleij <linus.walleij@linaro.org> - 2017-07-31 15:50 +0200

#1700064 — Re: [PATCH] input: keyboard: constify attribute_group structures.

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-07-31 15:50 +0200
SubjectRe: [PATCH] input: keyboard: constify attribute_group structures.
Message-ID<u9jf4-6U3-17@gated-at.bofh.it>
On Wed, Jul 5, 2017 at 12:46 PM, Arvind Yadav <arvind.yadav.cs@gmail.com> wrote:

> attribute_groups are not supposed to change at runtime. All functions
> working with attribute_groups provided by <linux/sysfs.h> work with const
> attribute_group. So mark the non-const structs as const.
>
> File size before:
>    text    data     bss     dec     hex filename
>    5693     464       0    6157    180d drivers/input/keyboard/gpio_keys.o
>
> File size After adding 'const':
>    text    data     bss     dec     hex filename
>    5749     400       0    6149    1805 drivers/input/keyboard/gpio_keys.o
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web