backends: remove unused headers

Remove headers declaring internal backends API.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2021-12-17 06:21:04 +03:00
parent 3b089f313e
commit 2014d2c0d8
11 changed files with 4 additions and 88 deletions

View File

@@ -42,7 +42,6 @@
#include <unistd.h>
#include "cdba-server.h"
#include "alpaca.h"
#include "device.h"
struct alpaca {

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -41,7 +41,6 @@
#include <unistd.h>
#include "cdba-server.h"
#include "conmux.h"
#include "device.h"
extern int h_errno;

View File

@@ -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

View File

@@ -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

View File

@@ -41,7 +41,7 @@
#include <unistd.h>
#include "cdba-server.h"
#include "ftdi-gpio.h"
#include "device.h"
#include <ftdi.h>

View File

@@ -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

View File

@@ -43,7 +43,6 @@
#include <unistd.h>
#include "cdba-server.h"
#include "qcomlt_dbg.h"
#include "device.h"
struct qcomlt_dbg {

View File

@@ -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