Commit 96cf0a57 authored by Michel Arruat's avatar Michel Arruat Committed by Alessandro Rubini

driver: trivial: remove macro and expand code instead

to not become crasy while grepping xx_exit or xx_init function (sorry...)
parent b7b138d5
...@@ -27,11 +27,11 @@ struct fa_modlist { ...@@ -27,11 +27,11 @@ struct fa_modlist {
int (*init)(struct fa_dev *); int (*init)(struct fa_dev *);
void (*exit)(struct fa_dev *); void (*exit)(struct fa_dev *);
}; };
#define SUBSYS(x) { #x, fa_ ## x ## _init, fa_ ## x ## _exit }
static struct fa_modlist mods[] = { static struct fa_modlist mods[] = {
SUBSYS(spi), {"spi", fa_spi_init, fa_spi_exit},
SUBSYS(onewire), {"onewire", fa_onewire_init, fa_onewire_exit},
SUBSYS(zio), {"zio", fa_zio_init, fa_zio_exit},
}; };
/* probe and remove are called by fa-spec.c */ /* probe and remove are called by fa-spec.c */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment