thermal: tsens: qcom: do not create duplicate regmap debugfs entries
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 15 Nov 2018 17:43:30 +0000 (17:43 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:47:11 +0000 (04:47 -0800)
commit4ab248b3b10a58e379e2d32333fff99ea5ca256c
tree161874b14b11d40f2ccc1013b3f65d50042bdd56
parentac31f6e25d4e9e9dfda9c0621242036b291b7754
thermal: tsens: qcom: do not create duplicate regmap debugfs entries

Regmap would use device name to create debugfs entries. If the device
has multiple regmaps it is recommended to use name field in regmap_config.
Fix this by providing name to the regmap configs correctly.

Without this patch we would see below error on DB820c.

qcom-tsens 4a9000.thermal-sensor: Failed to create 4a9000.thermal-sensor
debugfs directory

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Amit Kucheria <amit.kucheria@linaro.org>
Tested-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens-common.c