1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-19 07:48:06 +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:
Werner Almesberger 2010-11-11 09:04:36 -03:00
parent cf23ac6128
commit 688df9771d
4 changed files with 8 additions and 8 deletions

View File

@ -18,12 +18,12 @@
#include "atrf.h"
extern struct atspi_driver atusb_driver;
extern struct atspi_driver atusd_driver;
extern struct atrf_driver atusb_driver;
extern struct atrf_driver atusd_driver;
struct atspi_dsc {
struct atspi_driver *driver;
struct atrf_driver *driver;
void *handle;
};
@ -54,7 +54,7 @@ int atspi_clear_error(struct atspi_dsc *dsc)
struct atspi_dsc *atspi_open(void)
{
struct atspi_dsc *dsc;
struct atspi_driver *driver;
struct atrf_driver *driver;
void *handle;
#ifdef HAVE_USB

View File

@ -230,7 +230,7 @@ static int atusd_interrupt(void *dsc)
/* ----- driver interface -------------------------------------------------- */
struct atspi_driver atusb_driver = {
struct atrf_driver atusb_driver = {
.name = "USB",
.open = atusb_open,
.close = atusb_close,

View File

@ -314,7 +314,7 @@ static int atusd_interrupt(void *handle)
/* ----- Driver interface -------------------------------------------------- */
struct atspi_driver atusd_driver = {
struct atrf_driver atusd_driver = {
.name = "uSD",
.open = atusd_open,
.close = atusd_close,

View File

@ -1,5 +1,5 @@
/*
* lib/driver.h - ATSPI driver API
* lib/driver.h - ATRF driver API
*
* Written 2010 by Werner Almesberger
* Copyright 2010 Werner Almesberger
@ -17,7 +17,7 @@
#include <stdint.h>
struct atspi_driver {
struct atrf_driver {
const char *name;
void *(*open)(void);
void (*close)(void *dsc);