/* * wm8804-i2c.c -- WM8804 S/PDIF transceiver driver - I2C * * Copyright 2015 Cirrus Logic Inc * * Author: Charles Keepax * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include #include #include #include "wm8804.h" static int wm8804_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { struct regmap *regmap; regmap = devm_regmap_init_i2c(i2c, &wm8804_regmap_config); if (IS_ERR(regmap)) return PTR_ERR(regmap); return wm8804_probe(&i2c->dev, regmap); } static int wm8804_i2c_remove(struct i2c_client *i2c) { wm8804_remove(&i2c->dev); return 0; } static const struct i2c_device_id wm8804_i2c_id[] = { { "wm8804", 0 }, { } }; MODULE_DEVICE_TABLE(i2c, wm8804_i2c_id); static const struct of_device_id wm8804_of_match[] = { { .compatible = "wlf,wm8804", }, { } }; MODULE_DEVICE_TABLE(of, wm8804_of_match); static struct i2c_driver wm8804_i2c_driver = { .driver = { .name = "wm8804", .pm = &wm8804_pm, .of_match_table = wm8804_of_match, }, .probe = wm8804_i2c_probe, .remove = wm8804_i2c_remove, .id_table = wm8804_i2c_id }; module_i2c_driver(wm8804_i2c_driver); MODULE_DESCRIPTION("ASoC WM8804 driver - I2C"); MODULE_AUTHOR("Charles Keepax "); MODULE_LICENSE("GPL"); ref='/cgit.cgi/linux/net-next.git/refs/?id=af7170eee6ee269fe1d4f5cbd276bafc2ce064b8'>refslogtreecommitdiff
path: root/net
AgeCommit message (Expand)AuthorFilesLines
2017-02-03tcp: clear pfmemalloc on outgoing skbEric Dumazet1-0/+7
2017-02-03net: ipv6: Set protocol to kernel for local routesDavid Ahern1-0/+1
2017-02-03bridge: vlan dst_metadata hooks in ingress and egress pathsRoopa Prabhu6-2/+82
2017-02-03bridge: per vlan dst_metadata netlink supportRoopa Prabhu7-48/+641
2017-02-03net/sched: act_ife: Change to use ife moduleYotam Gigi2-78/+33
2017-02-03net: Introduce ife encapsulation moduleYotam Gigi5-0/+165
2017-02-03net/sched: act_ife: Unexport ife_tlv_meta_encodeYotam Gigi1-2/+2
2017-02-03tcp: add tcp_mss_clamp() helperEric Dumazet4-23/+8
2017-02-02net: add LINUX_MIB_PFMEMALLOCDROP counterEric Dumazet2-2/+4
2017-02-02net: ipv4: remove fib_lookup.h from devinet.c include listDavid Ahern1-2/+0
2017-02-02net: remove useless pfmemalloc settingEric Dumazet1-1/+0
2017-02-02unix: add ioctl to open a unix socket file with O_PATHAndrey Vagin1-0/+41
2017-02-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller12-104/+93
2017-02-01Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds10-103/+86
2017-02-01net/sched: act_psample: Remove unnecessary ASSERT_RTNLYotam Gigi1-1/+0
2017-02-01net/sched: act_sample: Fix error path in initYotam Gigi1-1/+4
2017-02-01tcp: fix 0 divide in __tcp_select_window()Eric Dumazet1-2/+4
2017-02-01ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim()Dan Carpenter1-1/+1
2017-02-01net: ipv6: add NLM_F_APPEND in notifications when applicableDavid Ahern1-0/+3
2017-02-01net: reduce skb_warn_bad_offload() noiseEric Dumazet1-3/+9
2017-02-01net/sched: matchall: Fix configuration raceYotam Gigi1-82/+45
2017-02-01rtnetlink: Handle IFLA_MASTER parameter when processing rtnl_newlinkTheuns Verwoerd1-1/+6