/* * SSM2602 SPI audio driver * * Copyright 2014 Analog Devices Inc. * * Licensed under the GPL-2. */ #include #include #include #include #include "ssm2602.h" static int ssm2602_spi_probe(struct spi_device *spi) { return ssm2602_probe(&spi->dev, SSM2602, devm_regmap_init_spi(spi, &ssm2602_regmap_config)); } static int ssm2602_spi_remove(struct spi_device *spi) { snd_soc_unregister_codec(&spi->dev); return 0; } static const struct of_device_id ssm2602_of_match[] = { { .compatible = "adi,ssm2602", }, { } }; MODULE_DEVICE_TABLE(of, ssm2602_of_match); static struct spi_driver ssm2602_spi_driver = { .driver = { .name = "ssm2602", .of_match_table = ssm2602_of_match, }, .probe = ssm2602_spi_probe, .remove = ssm2602_spi_remove, }; module_spi_driver(ssm2602_spi_driver); MODULE_DESCRIPTION("ASoC SSM2602 SPI driver"); MODULE_AUTHOR("Cliff Cai"); MODULE_LICENSE("GPL"); 'b98acbff9a05b371c5f0ca6e44a3af8ce9274379'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-01-11 15:36:20 +0000
committerMark Brown <broonie@kernel.org>2017-01-18 16:32:44 +0000
commitb98acbff9a05b371c5f0ca6e44a3af8ce9274379 (patch)
treed6835885f859a456e62ce93621041138d6a54f9b /include/soc/arc/mcip.h
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7 (diff)
regulator: twl6030: fix range comparison, allowing vsel = 59
The range min_uV > 1350000 && min_uV <= 150000 is never reachable because of a typo in the previous range check and hence vsel = 59 is never reached. Fix the previous range check to enable the vsel = 59 setting. Fixes CoverityScan CID#728454 ("Logially dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/soc/arc/mcip.h')