mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 20:03:09 +02:00
The Great ATSPI Renaming, part 5: rename "struct atspi_driver" to "atrf_driver"
- lib/driver.h: rename "struct atspi_driver" to "struct atrf_driver" - lib/atrf.c, lib/atusb.c, lib/atusd.c: track above change
This commit is contained in:
parent
cf23ac6128
commit
688df9771d
@ -18,12 +18,12 @@
|
|||||||
#include "atrf.h"
|
#include "atrf.h"
|
||||||
|
|
||||||
|
|
||||||
extern struct atspi_driver atusb_driver;
|
extern struct atrf_driver atusb_driver;
|
||||||
extern struct atspi_driver atusd_driver;
|
extern struct atrf_driver atusd_driver;
|
||||||
|
|
||||||
|
|
||||||
struct atspi_dsc {
|
struct atspi_dsc {
|
||||||
struct atspi_driver *driver;
|
struct atrf_driver *driver;
|
||||||
void *handle;
|
void *handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ int atspi_clear_error(struct atspi_dsc *dsc)
|
|||||||
struct atspi_dsc *atspi_open(void)
|
struct atspi_dsc *atspi_open(void)
|
||||||
{
|
{
|
||||||
struct atspi_dsc *dsc;
|
struct atspi_dsc *dsc;
|
||||||
struct atspi_driver *driver;
|
struct atrf_driver *driver;
|
||||||
void *handle;
|
void *handle;
|
||||||
|
|
||||||
#ifdef HAVE_USB
|
#ifdef HAVE_USB
|
||||||
|
@ -230,7 +230,7 @@ static int atusd_interrupt(void *dsc)
|
|||||||
/* ----- driver interface -------------------------------------------------- */
|
/* ----- driver interface -------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
struct atspi_driver atusb_driver = {
|
struct atrf_driver atusb_driver = {
|
||||||
.name = "USB",
|
.name = "USB",
|
||||||
.open = atusb_open,
|
.open = atusb_open,
|
||||||
.close = atusb_close,
|
.close = atusb_close,
|
||||||
|
@ -314,7 +314,7 @@ static int atusd_interrupt(void *handle)
|
|||||||
/* ----- Driver interface -------------------------------------------------- */
|
/* ----- Driver interface -------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
struct atspi_driver atusd_driver = {
|
struct atrf_driver atusd_driver = {
|
||||||
.name = "uSD",
|
.name = "uSD",
|
||||||
.open = atusd_open,
|
.open = atusd_open,
|
||||||
.close = atusd_close,
|
.close = atusd_close,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* lib/driver.h - ATSPI driver API
|
* lib/driver.h - ATRF driver API
|
||||||
*
|
*
|
||||||
* Written 2010 by Werner Almesberger
|
* Written 2010 by Werner Almesberger
|
||||||
* Copyright 2010 Werner Almesberger
|
* Copyright 2010 Werner Almesberger
|
||||||
@ -17,7 +17,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
||||||
struct atspi_driver {
|
struct atrf_driver {
|
||||||
const char *name;
|
const char *name;
|
||||||
void *(*open)(void);
|
void *(*open)(void);
|
||||||
void (*close)(void *dsc);
|
void (*close)(void *dsc);
|
||||||
|
Loading…
Reference in New Issue
Block a user