forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon: (ntc_thermistor) Use the manufacturer name properly
Murata Manufacturing Co., Ltd is the vendor for NTC (Negative Temperature coefficient) based Thermistors. But, the driver extensively uses "NTC" as the vendor name. This patch corrects the vendor name also updates the compatibility strings according to the vendor-prefix.txt Note: Drivers continue to support the previous compatible strings but further addition of these compatible strings in device tree is deprecated. Signed-off-by: Naveen Krishna Chatradhi <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
- Loading branch information
Showing
5 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,18 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata) | |
} | ||
|
||
static const struct of_device_id ntc_match[] = { | ||
{ .compatible = "murata,ncp15wb473", | ||
.data = &ntc_thermistor_id[0] }, | ||
{ .compatible = "murata,ncp18wb473", | ||
.data = &ntc_thermistor_id[1] }, | ||
{ .compatible = "murata,ncp21wb473", | ||
.data = &ntc_thermistor_id[2] }, | ||
{ .compatible = "murata,ncp03wb473", | ||
.data = &ntc_thermistor_id[3] }, | ||
{ .compatible = "murata,ncp15wl333", | ||
.data = &ntc_thermistor_id[4] }, | ||
|
||
/* Usage of vendor name "ntc" is deprecated */ | ||
{ .compatible = "ntc,ncp15wb473", | ||
.data = &ntc_thermistor_id[0] }, | ||
{ .compatible = "ntc,ncp18wb473", | ||
|
@@ -534,7 +546,7 @@ static struct platform_driver ntc_thermistor_driver = { | |
|
||
module_platform_driver(ntc_thermistor_driver); | ||
|
||
MODULE_DESCRIPTION("NTC Thermistor Driver"); | ||
MODULE_DESCRIPTION("NTC Thermistor Driver from Murata"); | ||
MODULE_AUTHOR("MyungJoo Ham <[email protected]>"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS("platform:ntc-thermistor"); |