mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
NFC: nxp-nci: Get rid of platform data
Legacy platform data must go away. We are on the safe side here since there are no users of it in the kernel. If anyone by any odd reason needs it the GPIO lookup tables and built-in device properties at your service. Signed-off-by: Andy Shevchenko <[email protected]> Tested-by: Sedat Dilek <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1b14a37565
commit
3b0b278312
5 changed files with 1 additions and 30 deletions
|
|
@ -14,7 +14,6 @@
|
|||
#include <linux/gpio.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/nfc.h>
|
||||
#include <linux/platform_data/nxp-nci.h>
|
||||
|
||||
#include <net/nfc/nci_core.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
#include <linux/gpio/consumer.h>
|
||||
#include <linux/of_gpio.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/platform_data/nxp-nci.h>
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
#include <net/nfc/nfc.h>
|
||||
|
|
@ -304,7 +303,6 @@ static int nxp_nci_i2c_probe(struct i2c_client *client,
|
|||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct nxp_nci_i2c_phy *phy;
|
||||
struct nxp_nci_nfc_platform_data *pdata;
|
||||
int r;
|
||||
|
||||
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
|
||||
|
|
@ -323,17 +321,12 @@ static int nxp_nci_i2c_probe(struct i2c_client *client,
|
|||
phy->i2c_dev = client;
|
||||
i2c_set_clientdata(client, phy);
|
||||
|
||||
pdata = client->dev.platform_data;
|
||||
|
||||
if (!pdata && client->dev.of_node) {
|
||||
if (client->dev.of_node) {
|
||||
r = nxp_nci_i2c_parse_devtree(client);
|
||||
if (r < 0) {
|
||||
nfc_err(&client->dev, "Failed to get DT data\n");
|
||||
goto probe_exit;
|
||||
}
|
||||
} else if (pdata) {
|
||||
phy->gpio_en = pdata->gpio_en;
|
||||
phy->gpio_fw = pdata->gpio_fw;
|
||||
} else if (ACPI_HANDLE(&client->dev)) {
|
||||
r = nxp_nci_i2c_acpi_config(phy);
|
||||
if (r < 0)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
#include <linux/completion.h>
|
||||
#include <linux/firmware.h>
|
||||
#include <linux/nfc.h>
|
||||
#include <linux/platform_data/nxp-nci.h>
|
||||
|
||||
#include <net/nfc/nci_core.h>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue