mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-05 05:18:28 +07:00
Staging: comedi: Remove local_info_t typedef in das08_cs.c
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b36536816e
commit
d8961467e6
@ -156,12 +156,12 @@ static void das08_pcmcia_detach(struct pcmcia_device *);
|
|||||||
|
|
||||||
static const dev_info_t dev_info = "pcm-das08";
|
static const dev_info_t dev_info = "pcm-das08";
|
||||||
|
|
||||||
typedef struct local_info_t {
|
struct local_info_t {
|
||||||
struct pcmcia_device *link;
|
struct pcmcia_device *link;
|
||||||
dev_node_t node;
|
dev_node_t node;
|
||||||
int stop;
|
int stop;
|
||||||
struct bus_operations *bus;
|
struct bus_operations *bus;
|
||||||
} local_info_t;
|
};
|
||||||
|
|
||||||
/*======================================================================
|
/*======================================================================
|
||||||
|
|
||||||
@ -177,12 +177,12 @@ typedef struct local_info_t {
|
|||||||
|
|
||||||
static int das08_pcmcia_attach(struct pcmcia_device *link)
|
static int das08_pcmcia_attach(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
local_info_t *local;
|
struct local_info_t *local;
|
||||||
|
|
||||||
DEBUG(0, "das08_pcmcia_attach()\n");
|
DEBUG(0, "das08_pcmcia_attach()\n");
|
||||||
|
|
||||||
/* Allocate space for private device-specific data */
|
/* Allocate space for private device-specific data */
|
||||||
local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
|
local = kzalloc(sizeof(struct local_info_t), GFP_KERNEL);
|
||||||
if (!local)
|
if (!local)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
local->link = link;
|
local->link = link;
|
||||||
@ -225,11 +225,11 @@ static void das08_pcmcia_detach(struct pcmcia_device *link)
|
|||||||
DEBUG(0, "das08_pcmcia_detach(0x%p)\n", link);
|
DEBUG(0, "das08_pcmcia_detach(0x%p)\n", link);
|
||||||
|
|
||||||
if (link->dev_node) {
|
if (link->dev_node) {
|
||||||
((local_info_t *) link->priv)->stop = 1;
|
((struct local_info_t *) link->priv)->stop = 1;
|
||||||
das08_pcmcia_release(link);
|
das08_pcmcia_release(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This points to the parent local_info_t struct */
|
/* This points to the parent struct local_info_t struct */
|
||||||
if (link->priv)
|
if (link->priv)
|
||||||
kfree(link->priv);
|
kfree(link->priv);
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ static void das08_pcmcia_detach(struct pcmcia_device *link)
|
|||||||
|
|
||||||
static void das08_pcmcia_config(struct pcmcia_device *link)
|
static void das08_pcmcia_config(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
local_info_t *dev = link->priv;
|
struct local_info_t *dev = link->priv;
|
||||||
tuple_t tuple;
|
tuple_t tuple;
|
||||||
cisparse_t parse;
|
cisparse_t parse;
|
||||||
int last_fn, last_ret;
|
int last_fn, last_ret;
|
||||||
@ -417,7 +417,7 @@ static void das08_pcmcia_release(struct pcmcia_device *link)
|
|||||||
|
|
||||||
static int das08_pcmcia_suspend(struct pcmcia_device *link)
|
static int das08_pcmcia_suspend(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
local_info_t *local = link->priv;
|
struct local_info_t *local = link->priv;
|
||||||
/* Mark the device as stopped, to block IO until later */
|
/* Mark the device as stopped, to block IO until later */
|
||||||
local->stop = 1;
|
local->stop = 1;
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ static int das08_pcmcia_suspend(struct pcmcia_device *link)
|
|||||||
|
|
||||||
static int das08_pcmcia_resume(struct pcmcia_device *link)
|
static int das08_pcmcia_resume(struct pcmcia_device *link)
|
||||||
{
|
{
|
||||||
local_info_t *local = link->priv;
|
struct local_info_t *local = link->priv;
|
||||||
|
|
||||||
local->stop = 0;
|
local->stop = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user