aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-19 13:05:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-19 13:05:34 -0400
commit1200b6809dfd9d73bc4c7db76d288c35fa4b2ebe (patch)
tree552e03de245cdbd0780ca1215914edc4a26540f7 /drivers/nfc
parent6b5f04b6cf8ebab9a65d9c0026c650bb2538fd0f (diff)
parentfe30937b65354c7fec244caebbdaae68e28ca797 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: "Highlights: 1) Support more Realtek wireless chips, from Jes Sorenson. 2) New BPF types for per-cpu hash and arrap maps, from Alexei Starovoitov. 3) Make several TCP sysctls per-namespace, from Nikolay Borisov. 4) Allow the use of SO_REUSEPORT in order to do per-thread processing of incoming TCP/UDP connections. The muxing can be done using a BPF program which hashes the incoming packet. From Craig Gallek. 5) Add a multiplexer for TCP streams, to provide a messaged based interface. BPF programs can be used to determine the message boundaries. From Tom Herbert. 6) Add 802.1AE MACSEC support, from Sabrina Dubroca. 7) Avoid factorial complexity when taking down an inetdev interface with lots of configured addresses. We were doing things like traversing the entire address less for each address removed, and flushing the entire netfilter conntrack table for every address as well. 8) Add and use SKB bulk free infrastructure, from Jesper Brouer. 9) Allow offloading u32 classifiers to hardware, and implement for ixgbe, from John Fastabend. 10) Allow configuring IRQ coalescing parameters on a per-queue basis, from Kan Liang. 11) Extend ethtool so that larger link mode masks can be supported. From David Decotigny. 12) Introduce devlink, which can be used to configure port link types (ethernet vs Infiniband, etc.), port splitting, and switch device level attributes as a whole. From Jiri Pirko. 13) Hardware offload support for flower classifiers, from Amir Vadai. 14) Add "Local Checksum Offload". Basically, for a tunneled packet the checksum of the outer header is 'constant' (because with the checksum field filled into the inner protocol header, the payload of the outer frame checksums to 'zero'), and we can take advantage of that in various ways. From Edward Cree" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1548 commits) bonding: fix bond_get_stats() net: bcmgenet: fix dma api length mismatch net/mlx4_core: Fix backward compatibility on VFs phy: mdio-thunder: Fix some Kconfig typos lan78xx: add ndo_get_stats64 lan78xx: handle statistics counter rollover RDS: TCP: Remove unused constant RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket net: smc911x: convert pxa dma to dmaengine team: remove duplicate set of flag IFF_MULTICAST bonding: remove duplicate set of flag IFF_MULTICAST net: fix a comment typo ethernet: micrel: fix some error codes ip_tunnels, bpf: define IP_TUNNEL_OPTS_MAX and use it bpf, dst: add and use dst_tclassid helper bpf: make skb->tc_classid also readable net: mvneta: bm: clarify dependencies cls_bpf: reset class and reuse major in da ldmvsw: Checkpatch sunvnet.c and sunvnet_common.c ldmvsw: Add ldmvsw.c driver code ...
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/microread/i2c.c8
-rw-r--r--drivers/nfc/pn544/i2c.c14
2 files changed, 1 insertions, 21 deletions
diff --git a/drivers/nfc/microread/i2c.c b/drivers/nfc/microread/i2c.c
index 918e8f2eac47..e0e8afd27849 100644
--- a/drivers/nfc/microread/i2c.c
+++ b/drivers/nfc/microread/i2c.c
@@ -246,18 +246,10 @@ static int microread_i2c_probe(struct i2c_client *client,
246 const struct i2c_device_id *id) 246 const struct i2c_device_id *id)
247{ 247{
248 struct microread_i2c_phy *phy; 248 struct microread_i2c_phy *phy;
249 struct microread_nfc_platform_data *pdata =
250 dev_get_platdata(&client->dev);
251 int r; 249 int r;
252 250
253 dev_dbg(&client->dev, "client %p\n", client); 251 dev_dbg(&client->dev, "client %p\n", client);
254 252
255 if (!pdata) {
256 nfc_err(&client->dev, "client %p: missing platform data\n",
257 client);
258 return -EINVAL;
259 }
260
261 phy = devm_kzalloc(&client->dev, sizeof(struct microread_i2c_phy), 253 phy = devm_kzalloc(&client->dev, sizeof(struct microread_i2c_phy),
262 GFP_KERNEL); 254 GFP_KERNEL);
263 if (!phy) 255 if (!phy)
diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c
index 76c318444304..45d0e667d7ae 100644
--- a/drivers/nfc/pn544/i2c.c
+++ b/drivers/nfc/pn544/i2c.c
@@ -877,20 +877,8 @@ exit_state_wait_secure_write_answer:
877static int pn544_hci_i2c_acpi_request_resources(struct i2c_client *client) 877static int pn544_hci_i2c_acpi_request_resources(struct i2c_client *client)
878{ 878{
879 struct pn544_i2c_phy *phy = i2c_get_clientdata(client); 879 struct pn544_i2c_phy *phy = i2c_get_clientdata(client);
880 const struct acpi_device_id *id;
881 struct gpio_desc *gpiod_en, *gpiod_fw; 880 struct gpio_desc *gpiod_en, *gpiod_fw;
882 struct device *dev; 881 struct device *dev = &client->dev;
883
884 if (!client)
885 return -EINVAL;
886
887 dev = &client->dev;
888
889 /* Match the struct device against a given list of ACPI IDs */
890 id = acpi_match_device(dev->driver->acpi_match_table, dev);
891
892 if (!id)
893 return -ENODEV;
894 882
895 /* Get EN GPIO from ACPI */ 883 /* Get EN GPIO from ACPI */
896 gpiod_en = devm_gpiod_get_index(dev, PN544_GPIO_NAME_EN, 1, 884 gpiod_en = devm_gpiod_get_index(dev, PN544_GPIO_NAME_EN, 1,