Skip to content

Commit

Permalink
ASoC: ak4641: Move register defines to main source
Browse files Browse the repository at this point in the history
The ak4641 driver only has a few register defines. As they are only used in
the one main driver file there is not really a need to keep them in a
separate header.

Moving them to the main source file allows to remove the now empty header
file completely.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
larsclausen authored and broonie committed Oct 24, 2016
1 parent 5fdc402 commit 5841ce1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 42 deletions.
22 changes: 21 additions & 1 deletion sound/soc/codecs/ak4641.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,27 @@
#include <sound/tlv.h>
#include <sound/ak4641.h>

#include "ak4641.h"
/* AK4641 register space */
#define AK4641_PM1 0x00
#define AK4641_PM2 0x01
#define AK4641_SIG1 0x02
#define AK4641_SIG2 0x03
#define AK4641_MODE1 0x04
#define AK4641_MODE2 0x05
#define AK4641_DAC 0x06
#define AK4641_MIC 0x07
#define AK4641_TIMER 0x08
#define AK4641_ALC1 0x09
#define AK4641_ALC2 0x0a
#define AK4641_PGA 0x0b
#define AK4641_LATT 0x0c
#define AK4641_RATT 0x0d
#define AK4641_VOL 0x0e
#define AK4641_STATUS 0x0f
#define AK4641_EQLO 0x10
#define AK4641_EQMID 0x11
#define AK4641_EQHI 0x12
#define AK4641_BTIF 0x13

/* codec private data */
struct ak4641_priv {
Expand Down
39 changes: 0 additions & 39 deletions sound/soc/codecs/ak4641.h

This file was deleted.

2 changes: 0 additions & 2 deletions sound/soc/pxa/hx4700.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <asm/mach-types.h>
#include "pxa2xx-i2s.h"

#include "../codecs/ak4641.h"

static struct snd_soc_jack hs_jack;

/* Headphones jack detection DAPM pin */
Expand Down

0 comments on commit 5841ce1

Please sign in to comment.