2 * Some generic functions for LCD drivers.
5 #include <l4/arm_drivers/lcd.h>
7 enum { nr_drivers = 10 };
8 static struct arm_lcd_ops *ops[nr_drivers];
9 static int ops_alloced;
11 struct arm_lcd_ops *arm_lcd_probe(const char *configstr)
15 for (i = 0; i < ops_alloced; i++)
16 if (ops[i]->probe && ops[i]->probe(configstr))
22 void arm_lcd_register_driver(struct arm_lcd_ops *_ops)
24 if (ops_alloced < nr_drivers)
25 ops[ops_alloced++] = _ops;