From: Frank Mori Hess Date: Mon, 31 May 2004 22:30:58 +0000 (+0000) Subject: added cs_error() compatibility function X-Git-Tag: r0_7_69~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34eec2969a691ed157af507865385c498a2726f0;p=comedi.git added cs_error() compatibility function --- diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 8de9f000..1be7299e 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h @@ -21,13 +21,18 @@ struct pcmcia_driver { static inline int pcmcia_register_driver(struct pcmcia_driver *driver) { return register_pccard_driver(driver->drv.name, driver->attach, driver->detach); -} +}; static void inline pcmcia_unregister_driver(struct pcmcia_driver *driver) { unregister_pccard_driver(driver->drv.name); -} +}; +static void inline cs_error(client_handle_t handle, int func, int ret) +{ + error_info_t err = { func, ret }; + CardServices(ReportError, handle, &err); +}; #endif