]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05f28ee35b886039759a8db53467e3004cbf9461
tree4633c5883770f0f610a48c2434b45518788f7928
parentc33462d5303ce65bab8b3e53ddbf9e901efa17fa
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