]> git.baikalelectronics.ru Git - kernel.git/commit
memory: brcmstb: dpfe: optimize generic_show()
authorMarkus Mayer <mmayer@broadcom.com>
Tue, 12 Feb 2019 01:24:42 +0000 (17:24 -0800)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 20 May 2019 16:32:35 +0000 (09:32 -0700)
commit4deece8df8f6a62aec3f983af594716d2a8f6040
tree7b188d721601a1b16574402ad9cae59925ab7c52
parent1f1ca6500cb3f76237069a46b0f75357d2abfa19
memory: brcmstb: dpfe: optimize generic_show()

We can pass a (struct priv_data *) to generic_show() rather than a
(struct device *). For two of the three callers of this function, the
change means one less call to dev_get_drvdata(). For the third caller,
it makes no difference.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/memory/brcmstb_dpfe.c