/* * linux/sound/soc/codecs/tlv320aic32x4-spi.c * * Copyright 2011 NW Digital Radio * * Author: Jeremy McDermond * * Based on sound/soc/codecs/wm8974 and TI driver for kernel 2.6.27. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include #include #include #include #include "tlv320aic32x4.h" static int aic32x4_spi_probe(struct spi_device *spi) { struct regmap *regmap; struct regmap_config config; config = aic32x4_regmap_config; config.reg_bits = 7; config.pad_bits = 1; config.val_bits = 8; config.read_flag_mask = 0x01; regmap = devm_regmap_init_spi(spi, &config); return aic32x4_probe(&spi->dev, regmap); } static int aic32x4_spi_remove(struct spi_device *spi) { return aic32x4_remove(&spi->dev); } static const struct spi_device_id aic32x4_spi_id[] = { { "tlv320aic32x4", 0 }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(spi, aic32x4_spi_id); static const struct of_device_id aic32x4_of_id[] = { { .compatible = "ti,tlv320aic32x4", }, { /* senitel */ } }; MODULE_DEVICE_TABLE(of, aic32x4_of_id); static struct spi_driver aic32x4_spi_driver = { .driver = { .name = "tlv320aic32x4", .owner = THIS_MODULE, .of_match_table = aic32x4_of_id, }, .probe = aic32x4_spi_probe, .remove = aic32x4_spi_remove, .id_table = aic32x4_spi_id, }; module_spi_driver(aic32x4_spi_driver); MODULE_DESCRIPTION("ASoC TLV320AIC32x4 codec driver SPI"); MODULE_AUTHOR("Jeremy McDermond "); MODULE_LICENSE("GPL"); .cgi/linux/net-next.git/diff/include/xen/swiotlb-xen.h?id=81917bad86a66f2bdcb12b4c10ab1bf333ed25ec'>diff
diff options
context:
space:
mode:
authorRoger Shimizu <rogershimizu@gmail.com>2017-01-30 20:07:29 +0900
committerGregory CLEMENT <gregory.clement@free-electrons.com>2017-01-31 12:19:32 +0100
commit81917bad86a66f2bdcb12b4c10ab1bf333ed25ec (patch)
tree3d56cb771fc5f0a37412e62f99aacc6d21a646c0 /include/xen/swiotlb-xen.h
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff)
ARM: dts: orion5x-lschl: Fix model name
Model name should be consistent with legacy device file, so that user can migrate their system from legacy device support to device-tree safely. Legacy device file is currently removed, but it can be found on 4.8 or previous version of linux: arch/arm/mach-orion5x/ls-chl-setup.c Fixes: f94f268979a2 ("ARM: dts: orion5x: convert ls-chl to FDT") Cc: Ashley Hughes <ashley.hughes@blueyonder.co.uk> Signed-off-by: Roger Shimizu <rogershimizu@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'include/xen/swiotlb-xen.h')