Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/mfd/core.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/wm8994/core.h>
#include <linux/mfd/wm8994/pdata.h>
#include <linux/mfd/wm8994/registers.h>
#include "wm8994.h"
Go to the source code of this file.
Functions | |
int | wm8994_reg_read (struct wm8994 *wm8994, unsigned short reg) |
EXPORT_SYMBOL_GPL (wm8994_reg_read) | |
int | wm8994_bulk_read (struct wm8994 *wm8994, unsigned short reg, int count, u16 *buf) |
int | wm8994_reg_write (struct wm8994 *wm8994, unsigned short reg, unsigned short val) |
EXPORT_SYMBOL_GPL (wm8994_reg_write) | |
int | wm8994_bulk_write (struct wm8994 *wm8994, unsigned short reg, int count, const u16 *buf) |
EXPORT_SYMBOL_GPL (wm8994_bulk_write) | |
int | wm8994_set_bits (struct wm8994 *wm8994, unsigned short reg, unsigned short mask, unsigned short val) |
EXPORT_SYMBOL_GPL (wm8994_set_bits) | |
MODULE_DEVICE_TABLE (of, wm8994_of_match) | |
MODULE_DEVICE_TABLE (i2c, wm8994_i2c_id) | |
module_i2c_driver (wm8994_i2c_driver) | |
MODULE_DESCRIPTION ("Core support for the WM8994 audio CODEC") | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("Mark Brown <[email protected]>") | |
EXPORT_SYMBOL_GPL | ( | wm8994_reg_read | ) |
EXPORT_SYMBOL_GPL | ( | wm8994_reg_write | ) |
EXPORT_SYMBOL_GPL | ( | wm8994_bulk_write | ) |
EXPORT_SYMBOL_GPL | ( | wm8994_set_bits | ) |
MODULE_AUTHOR | ( | "Mark Brown <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
wm8994_of_match | |||
) |
MODULE_DEVICE_TABLE | ( | i2c | , |
wm8994_i2c_id | |||
) |
module_i2c_driver | ( | wm8994_i2c_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |
wm8994_bulk_read: Read multiple WM8994 registers
: Device to read from : First register : Number of registers : Buffer to fill. The data will be returned big endian.
Definition at line 61 of file wm8994-core.c.
wm8994_bulk_write: Write multiple WM8994 registers
: Device to write to : First register : Number of registers : Buffer to write from. Data must be big-endian formatted.
Definition at line 89 of file wm8994-core.c.
wm8994_reg_read: Read a single WM8994 register.
: Device to read from. : Register to read.
Definition at line 39 of file wm8994-core.c.
wm8994_reg_write: Write a single WM8994 register.
: Device to write to. : Register to write to. : Value to write.
Definition at line 74 of file wm8994-core.c.
int wm8994_set_bits | ( | struct wm8994 * | wm8994, |
unsigned short | reg, | ||
unsigned short | mask, | ||
unsigned short | val | ||
) |
wm8994_set_bits: Set the value of a bitfield in a WM8994 register
: Device to write to. : Register to write to. : Mask of bits to set. : Value to set (unshifted)
Definition at line 104 of file wm8994-core.c.