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)
commit900c8f578be2032e46dd936684838aa59cd5a477
tree7b188d721601a1b16574402ad9cae59925ab7c52
parent7ccd2ffce0d4a180172c984ca7266d056d6d4b11
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