thermal: rockchip: don't pass table structs by value
authorBrian Norris <briannorris@chromium.org>
Mon, 12 Dec 2016 11:05:32 +0000 (19:05 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 14 Dec 2016 04:31:59 +0000 (20:31 -0800)
commitcdd8b3f7b779e39bda1a8057f287da065216720b
tree4633c5883770f0f610a48c2434b45518788f7928
parente6ed1b4ad30331e6d878579dd95764d0a224cacd
thermal: rockchip: don't pass table structs by value

This driver passes struct chip_tsadc_table by value throughout; this is
inefficient, and AFAICT, there is no reason for it. Let's pass pointers
instead.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c