From f33334978abd01cbf24d067977a25ad0abd047c8 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Thu, 18 Jul 2013 08:15:04 -0700 Subject: [PATCH] pinctrl: Remove duplicate code in pinctrl_pm_select_state functions There's no need to duplicate essentially the same functions. Let's introduce static int pinctrl_pm_select_state() and make the other related functions call that. This allows us to add support later on for multiple active states, and more optimized dynamic remuxing. Note that we still need to export the various pinctrl_pm_select functions as we want to keep struct pinctrl_state private to the pinctrl code, and cannot replace those with inline functions. Cc: Felipe Balbi Cc: Stephen Warren Signed-off-by: Grygorii Strashko Signed-off-by: Tony Lindgren Signed-off-by: Linus Walleij --- Reading git-format-patch failed