mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
backends: remove unused headers
Remove headers declaring internal backends API. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
1
alpaca.c
1
alpaca.c
@@ -42,7 +42,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "cdba-server.h"
|
||||
#include "alpaca.h"
|
||||
#include "device.h"
|
||||
|
||||
struct alpaca {
|
||||
|
||||
13
alpaca.h
13
alpaca.h
@@ -1,13 +0,0 @@
|
||||
#ifndef __ALPACA_H__
|
||||
#define __ALPACA_H__
|
||||
|
||||
#include "device.h"
|
||||
|
||||
struct alpaca;
|
||||
|
||||
void *alpaca_open(struct device *dev);
|
||||
int alpaca_power(struct device *dev, bool on);
|
||||
void alpaca_usb(struct device *dev, bool on);
|
||||
void alpaca_key(struct device *dev, int key, bool on);
|
||||
|
||||
#endif
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "cdba-server.h"
|
||||
#include "cdb_assist.h"
|
||||
#include "device.h"
|
||||
|
||||
struct cdb_assist {
|
||||
@@ -90,6 +89,8 @@ enum {
|
||||
STATE_num_num_m,
|
||||
};
|
||||
|
||||
static void cdb_set_voltage(struct cdb_assist *cdb, unsigned mV);
|
||||
|
||||
static void cdb_parser_bool(struct cdb_assist *cdb, const char *key, bool set)
|
||||
{
|
||||
static const char *sz_keys[] = { "vbat", "btn1", "btn2", "btn3", "vbus" };
|
||||
@@ -361,7 +362,7 @@ void cdb_assist_print_status(struct device *dev)
|
||||
cdba_send_buf(MSG_STATUS_UPDATE, n, buf);
|
||||
}
|
||||
|
||||
void cdb_set_voltage(struct cdb_assist *cdb, unsigned mV)
|
||||
static void cdb_set_voltage(struct cdb_assist *cdb, unsigned mV)
|
||||
{
|
||||
char buf[20];
|
||||
int n;
|
||||
|
||||
23
cdb_assist.h
23
cdb_assist.h
@@ -1,23 +0,0 @@
|
||||
#ifndef __CDB_ASSIST_H__
|
||||
#define __CDB_ASSIST_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "device.h"
|
||||
|
||||
struct cdb_assist;
|
||||
|
||||
void *cdb_assist_open(struct device *dev);
|
||||
void cdb_assist_close(struct device *dev);
|
||||
|
||||
int cdb_assist_power(struct device *dev, bool on);
|
||||
void cdb_assist_usb(struct device *dev, bool on);
|
||||
void cdb_assist_key(struct device *dev, int key, bool asserted);
|
||||
void cdb_gpio(struct cdb_assist *cdb, int gpio, bool on);
|
||||
int cdb_target_write(struct device *dev, const void *buf, size_t len);
|
||||
void cdb_send_break(struct device *dev);
|
||||
unsigned int cdb_vref(struct cdb_assist *cdb);
|
||||
void cdb_assist_print_status(struct device *dev);
|
||||
void cdb_set_voltage(struct cdb_assist *cdb, unsigned mV);
|
||||
|
||||
#endif
|
||||
1
conmux.c
1
conmux.c
@@ -41,7 +41,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "cdba-server.h"
|
||||
#include "conmux.h"
|
||||
#include "device.h"
|
||||
|
||||
extern int h_errno;
|
||||
|
||||
12
conmux.h
12
conmux.h
@@ -1,12 +0,0 @@
|
||||
#ifndef __CONMUX_H__
|
||||
#define __CONMUX_H__
|
||||
|
||||
#include "device.h"
|
||||
|
||||
struct conmux;
|
||||
|
||||
void *conmux_open(struct device *dev);
|
||||
int conmux_power(struct device *dev, bool on);
|
||||
int conmux_write(struct device *dev, const void *buf, size_t len);
|
||||
|
||||
#endif
|
||||
10
console.h
10
console.h
@@ -1,10 +0,0 @@
|
||||
#ifndef __CONSOLE_H__
|
||||
#define __CONSOLE_H__
|
||||
|
||||
#include "device.h"
|
||||
|
||||
void console_open(struct device *device);
|
||||
int console_write(struct device *device, const void *buf, size_t len);
|
||||
void console_send_break(struct device *device);
|
||||
|
||||
#endif
|
||||
@@ -41,7 +41,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "cdba-server.h"
|
||||
#include "ftdi-gpio.h"
|
||||
#include "device.h"
|
||||
|
||||
#include <ftdi.h>
|
||||
|
||||
|
||||
13
ftdi-gpio.h
13
ftdi-gpio.h
@@ -1,13 +0,0 @@
|
||||
#ifndef __FTDI_GPIO_H__
|
||||
#define __FTDI_GPIO_H__
|
||||
|
||||
#include "device.h"
|
||||
|
||||
struct ftdi_gpio;
|
||||
|
||||
void *ftdi_gpio_open(struct device *dev);
|
||||
int ftdi_gpio_power(struct device *dev, bool on);
|
||||
void ftdi_gpio_usb(struct device *dev, bool on);
|
||||
void ftdi_gpio_key(struct device *dev, int key, bool on);
|
||||
|
||||
#endif
|
||||
@@ -43,7 +43,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "cdba-server.h"
|
||||
#include "qcomlt_dbg.h"
|
||||
#include "device.h"
|
||||
|
||||
struct qcomlt_dbg {
|
||||
|
||||
11
qcomlt_dbg.h
11
qcomlt_dbg.h
@@ -1,11 +0,0 @@
|
||||
#ifndef __QCOMLT_DBG_H__
|
||||
#define __QCOMLT_DBG_H__
|
||||
|
||||
#include "device.h"
|
||||
|
||||
void *qcomlt_dbg_open(struct device *dev);
|
||||
int qcomlt_dbg_power(struct device *dev, bool on);
|
||||
void qcomlt_dbg_usb(struct device *dev, bool on);
|
||||
void qcomlt_dbg_key(struct device *dev, int key, bool asserted);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user