cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

adav803.c (847B)


      1// SPDX-License-Identifier: GPL-2.0-only
      2/*
      3 * ADAV803 audio driver
      4 *
      5 * Copyright 2014 Analog Devices Inc.
      6 */
      7
      8#include <linux/module.h>
      9#include <linux/i2c.h>
     10#include <linux/regmap.h>
     11
     12#include <sound/soc.h>
     13
     14#include "adav80x.h"
     15
     16static const struct i2c_device_id adav803_id[] = {
     17	{ "adav803", 0 },
     18	{ }
     19};
     20MODULE_DEVICE_TABLE(i2c, adav803_id);
     21
     22static int adav803_probe(struct i2c_client *client)
     23{
     24	return adav80x_bus_probe(&client->dev,
     25		devm_regmap_init_i2c(client, &adav80x_regmap_config));
     26}
     27
     28static struct i2c_driver adav803_driver = {
     29	.driver = {
     30		.name = "adav803",
     31	},
     32	.probe_new = adav803_probe,
     33	.id_table = adav803_id,
     34};
     35module_i2c_driver(adav803_driver);
     36
     37MODULE_DESCRIPTION("ASoC ADAV803 driver");
     38MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
     39MODULE_AUTHOR("Yi Li <yi.li@analog.com>>");
     40MODULE_LICENSE("GPL");