lkml.org 
[lkml]   [2022]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 13/17] pinctrl: lewisburg: Replace LBG_COMMUNITY() by INTEL_COMMUNITY_SIZE()
    Date
    Use INTEL_COMMUNITY_SIZE() common macro instead custom LBG_COMMUNITY().

    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    ---
    drivers/pinctrl/intel/pinctrl-lewisburg.c | 12 +-----------
    1 file changed, 1 insertion(+), 11 deletions(-)

    diff --git a/drivers/pinctrl/intel/pinctrl-lewisburg.c b/drivers/pinctrl/intel/pinctrl-lewisburg.c
    index ad4b446d588e..7aac1bbde2e9 100644
    --- a/drivers/pinctrl/intel/pinctrl-lewisburg.c
    +++ b/drivers/pinctrl/intel/pinctrl-lewisburg.c
    @@ -21,17 +21,7 @@
    #define LBG_GPI_IE 0x110

    #define LBG_COMMUNITY(b, s, e) \
    - { \
    - .barno = (b), \
    - .padown_offset = LBG_PAD_OWN, \
    - .padcfglock_offset = LBG_PADCFGLOCK, \
    - .hostown_offset = LBG_HOSTSW_OWN, \
    - .is_offset = LBG_GPI_IS, \
    - .ie_offset = LBG_GPI_IE, \
    - .gpp_size = 24, \
    - .pin_base = (s), \
    - .npins = ((e) - (s) + 1), \
    - }
    + INTEL_COMMUNITY_SIZE(b, s, e, 24, 3, LBG)

    /* Lewisburg */
    static const struct pinctrl_pin_desc lbg_pins[] = {
    --
    2.35.1
    \
     
     \ /
      Last update: 2022-12-19 13:28    [W:7.571 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site