Skip to content

Commit 28397dc

Browse files
geertugregkh
authored andcommitted
mfd: staging: Constify struct mfd_cell where possible
As of commit 03e361b ("mfd: Stop setting refcounting pointers in original mfd_cell arrays"), the "cell" parameter of mfd_add_devices() is "const" again. Hence make all cell data passed to mfd_add_devices() const where possible. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: devel@driverdev.osuosl.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent df6b851 commit 28397dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/staging/nvec/nvec.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ enum nvec_sleep_subcmds {
8383

8484
static struct nvec_chip *nvec_power_handle;
8585

86-
static struct mfd_cell nvec_devices[] = {
86+
static const struct mfd_cell nvec_devices[] = {
8787
{
8888
.name = "nvec-kbd",
8989
.id = 1,

0 commit comments

Comments
 (0)