mfd: iio: ti_am335x_adc: rename device from tiadc to TI-am335x-adc

TI-adc reads a little better compared to tiadc. And if we add am335x to
it then we have the same naming scheme as the tsc side.
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
parent 5f184e63
...@@ -292,7 +292,7 @@ MODULE_DEVICE_TABLE(of, ti_adc_dt_ids); ...@@ -292,7 +292,7 @@ MODULE_DEVICE_TABLE(of, ti_adc_dt_ids);
static struct platform_driver tiadc_driver = { static struct platform_driver tiadc_driver = {
.driver = { .driver = {
.name = "tiadc", .name = "TI-am335x-adc",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = TIADC_PM_OPS, .pm = TIADC_PM_OPS,
.of_match_table = of_match_ptr(ti_adc_dt_ids), .of_match_table = of_match_ptr(ti_adc_dt_ids),
...@@ -300,7 +300,6 @@ static struct platform_driver tiadc_driver = { ...@@ -300,7 +300,6 @@ static struct platform_driver tiadc_driver = {
.probe = tiadc_probe, .probe = tiadc_probe,
.remove = tiadc_remove, .remove = tiadc_remove,
}; };
module_platform_driver(tiadc_driver); module_platform_driver(tiadc_driver);
MODULE_DESCRIPTION("TI ADC controller driver"); MODULE_DESCRIPTION("TI ADC controller driver");
......
...@@ -223,7 +223,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) ...@@ -223,7 +223,7 @@ static int ti_tscadc_probe(struct platform_device *pdev)
if (adc_channels > 0) { if (adc_channels > 0) {
tscadc->adc_cell = tscadc->used_cells; tscadc->adc_cell = tscadc->used_cells;
cell = &tscadc->cells[tscadc->used_cells++]; cell = &tscadc->cells[tscadc->used_cells++];
cell->name = "tiadc"; cell->name = "TI-am335x-adc";
cell->of_compatible = "ti,am3359-adc"; cell->of_compatible = "ti,am3359-adc";
cell->platform_data = &tscadc; cell->platform_data = &tscadc;
cell->pdata_size = sizeof(tscadc); cell->pdata_size = sizeof(tscadc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment