Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1432506
| From | Keerthy <j-keerthy@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 06/10] gpio: tps65218: Remove the compatible |
| Date | 2016-06-28 08:10 +0200 |
| Message-ID | <rOUnE-328-25@gated-at.bofh.it> (permalink) |
| References | <rOUnD-328-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Remove the individual compatible for the gpio module.
Introduce id_table and update the driver accordingly
to parse device tree nodes by just using the mfd compatible.
Signed-off-by: Keerthy <j-keerthy@ti.com>
---
drivers/gpio/gpio-tps65218.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpio/gpio-tps65218.c b/drivers/gpio/gpio-tps65218.c
index 0f9d9bd..06fd61f 100644
--- a/drivers/gpio/gpio-tps65218.c
+++ b/drivers/gpio/gpio-tps65218.c
@@ -225,19 +225,19 @@ static int tps65218_gpio_remove(struct platform_device *pdev)
return 0;
}
-static const struct of_device_id tps65218_dt_match[] = {
- { .compatible = "ti,tps65218-gpio" },
- { }
+static const struct platform_device_id tps65218_gpio_id_table[] = {
+ { "tps65218-gpio", },
+ { /* sentinel */ }
};
-MODULE_DEVICE_TABLE(of, tps65218_dt_match);
+MODULE_DEVICE_TABLE(platform, tps65218_gpio_id_table);
static struct platform_driver tps65218_gpio_driver = {
.driver = {
.name = "tps65218-gpio",
- .of_match_table = of_match_ptr(tps65218_dt_match)
},
.probe = tps65218_gpio_probe,
.remove = tps65218_gpio_remove,
+ .id_table = tps65218_gpio_id_table,
};
module_platform_driver(tps65218_gpio_driver);
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 00/10] mfd: tps65218: Clean ups Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
[PATCH v3 07/10] ARM: dts: AM437X-GP-EVM: Remove redundant regulator compatibles Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
[PATCH v3 10/10] ARM: dts: AM43X-EPOS-EVM: Remove redundant regulator compatibles Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
[PATCH v3 03/10] input: tps65218-pwrbutton: Add platform_device_id table Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
Re: [PATCH v3 03/10] input: tps65218-pwrbutton: Add platform_device_id table Lee Jones <lee.jones@linaro.org> - 2016-06-28 08:50 +0200
Re: [PATCH v3 03/10] input: tps65218-pwrbutton: Add platform_device_id table Keerthy <a0393675@ti.com> - 2016-06-28 09:00 +0200
Re: [PATCH v3 03/10] input: tps65218-pwrbutton: Add platform_device_id table Lee Jones <lee.jones@linaro.org> - 2016-06-28 09:50 +0200
Re: [PATCH v3 03/10] input: tps65218-pwrbutton: Add platform_device_id table Keerthy <a0393675@ti.com> - 2016-06-28 09:50 +0200
[PATCH v3 05/10] regulator: tps65218: Remove all the compatibles Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
[PATCH v3 09/10] ARM: dts: AM437X-CM-T43: Remove redundant regulator compatibles Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
[PATCH v3 08/10] ARM: dts: AM437X-SK-EVM: Remove redundant regulator compatibles Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
[PATCH v3 01/10] mfd: tps65218: Remove redundant read wrapper Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
Re: [PATCH v3 01/10] mfd: tps65218: Remove redundant read wrapper Lee Jones <lee.jones@linaro.org> - 2016-06-28 09:10 +0200
Re: [PATCH v3 01/10] mfd: tps65218: Remove redundant read wrapper Keerthy <a0393675@ti.com> - 2016-06-28 09:10 +0200
[PATCH v3 06/10] gpio: tps65218: Remove the compatible Keerthy <j-keerthy@ti.com> - 2016-06-28 08:10 +0200
Re: [PATCH v3 06/10] gpio: tps65218: Remove the compatible Lee Jones <lee.jones@linaro.org> - 2016-06-28 09:00 +0200
Re: [PATCH v3 06/10] gpio: tps65218: Remove the compatible Keerthy <a0393675@ti.com> - 2016-06-28 09:10 +0200
[PATCH v3 04/10] mfd: tps65218: Use mfd_add_devices instead of of_platform_populate Keerthy <j-keerthy@ti.com> - 2016-06-28 08:20 +0200
Re: [PATCH v3 04/10] mfd: tps65218: Use mfd_add_devices instead of of_platform_populate Lee Jones <lee.jones@linaro.org> - 2016-06-28 09:00 +0200
[PATCH v3 02/10] Documentation: regulator: tps65218: Update examples Keerthy <j-keerthy@ti.com> - 2016-06-28 08:20 +0200
Re: [PATCH v3 02/10] Documentation: regulator: tps65218: Update examples Lee Jones <lee.jones@linaro.org> - 2016-06-28 09:00 +0200
Re: [PATCH v3 02/10] Documentation: regulator: tps65218: Update examples Keerthy <a0393675@ti.com> - 2016-06-28 09:50 +0200
csiph-web