Skip to content

Commit

Permalink
pinctrl: keembay: Fix func conversion in keembay_build_functions()
Browse files Browse the repository at this point in the history
A recent refactoring to use the func member in struct function_desc
missed converting one uses of name in keembay_build_functions(),
resulting in a build failure:

  drivers/pinctrl/pinctrl-keembay.c: In function 'keembay_build_functions':
  drivers/pinctrl/pinctrl-keembay.c:1630:35: error: 'struct function_desc' has no member named 'name'
   1630 |                         if (!fdesc->name) {
        |                                   ^~

Perform the same conversion to resolve the build error.

Fixes: 73ee522 ("pinctrl: keembay: Convert to use func member")
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/20240611-pinctrl-keembay-fix-func-conversion-v1-1-3197f2ded3f7@kernel.org
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
nathanchance authored and linusw committed Jun 17, 2024
1 parent b755521 commit c47d254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-keembay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ static int keembay_build_functions(struct keembay_pinctrl *kpc)
}

/* Setup new function for this mux we didn't see before */
if (!fdesc->name) {
if (!fdesc->func.name) {
fdesc->func.name = mux->name;
fdesc->func.ngroups = 1;
fdesc->data = &mux->mode;
Expand Down

0 comments on commit c47d254

Please sign in to comment.