lkml.org 
[lkml]   [2020]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH] pinctrl: pinctrl-microchip-sgpio: properties_luton can be static

    Signed-off-by: kernel test robot <lkp@intel.com>
    ---
    pinctrl-microchip-sgpio.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c
    index 1a9c01e2ad99f6..439779bc6e4e0b 100644
    --- a/drivers/pinctrl/pinctrl-microchip-sgpio.c
    +++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c
    @@ -58,7 +58,7 @@ struct sgpio_properties {
    #define SGPIO_F_PORT_CFG_BIT_SOURCE(p, x) __BF_PREP((p)->properties->bit_source, x)
    #define SGPIO_X_PORT_CFG_BIT_SOURCE(p, x) __BF_GET((p)->properties->bit_source, x)

    -const struct sgpio_properties properties_luton = {
    +static const struct sgpio_properties properties_luton = {
    .regoff = { 0x00, 0x09, 0x29, 0x2a, 0x2b },
    .auto_repeat = BIT(5),
    .port_width = GENMASK(3, 2),
    @@ -66,7 +66,7 @@ const struct sgpio_properties properties_luton = {
    .bit_source = GENMASK(11, 0),
    };

    -const struct sgpio_properties properties_ocelot = {
    +static const struct sgpio_properties properties_ocelot = {
    .regoff = { 0x00, 0x06, 0x26, 0x04, 0x05 },
    .auto_repeat = BIT(10),
    .port_width = GENMASK(8, 7),
    @@ -74,7 +74,7 @@ const struct sgpio_properties properties_ocelot = {
    .bit_source = GENMASK(23, 12),
    };

    -const struct sgpio_properties properties_sparx5 = {
    +static const struct sgpio_properties properties_sparx5 = {
    .regoff = { 0x00, 0x06, 0x26, 0x04, 0x05 },
    .auto_repeat = BIT(6),
    .port_width = GENMASK(4, 3),
    \
     
     \ /
      Last update: 2020-11-02 09:55    [W:3.206 / U:0.320 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site