mbox series

[v2,0/2] Minor improvements for Cherryview pinctrl

Message ID 20230609083356.24849-1-raag.jadav@intel.com
Headers show
Series Minor improvements for Cherryview pinctrl | expand

Message

Raag Jadav June 9, 2023, 8:33 a.m. UTC
This series implements minor improvements for Cherryview pinctrl driver.

The optimizations are as tested with gcc 7.5.0 with default -O2.

Raag Jadav (2):
  pinctrl: cherryview: simplify exit path of set_mux hook
  pinctrl: cherryview: simplify exit path of gpio_request_enable hook

 drivers/pinctrl/intel/pinctrl-cherryview.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

Comments

Mika Westerberg June 9, 2023, 8:41 a.m. UTC | #1
On Fri, Jun 09, 2023 at 02:03:55PM +0530, Raag Jadav wrote:
> Simplify exit path of ->set_mux() hook and save a few bytes.
> 
> add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-34 (-34)
> Function                                     old     new   delta
> chv_pinmux_set_mux                           640     606     -34
> Total: Before=19233, After=19199, chg -0.18%
> 
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> ---
>  drivers/pinctrl/intel/pinctrl-cherryview.c | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

Ditto here regarding simplifying.