lkml.org 
[lkml]   [2017]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 0/3] constify char attribute_group structures
Date
Why stop at these 3 users of attribute_group?

--mark

-----Original Message-----
From: Arvind Yadav [mailto:arvind.yadav.cs@gmail.com]
Sent: Wednesday, August 2, 2017 4:19 AM
To: arnd@arndb.de; gregkh@linuxfoundation.org; Gross, Mark <mark.gross@intel.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] constify char attribute_group structures

attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by <linux/sysfs.h> work with const attribute_group. So mark the non-const structs as const.

Arvind Yadav (3):
[PATCH 1/3] char: tlclk: constify attribute_group structures.
[PATCH 2/3] char: tpm: constify attribute_group structures.
[PATCH 3/3] char: virtio: constify attribute_group structures.

drivers/char/tlclk.c | 2 +-
drivers/char/tpm/tpm_ppi.c | 2 +-
drivers/char/virtio_console.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

--
1.9.1

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