PATTERN_ALL_HIGH,
};
-/* FIXME: Should not be global. */
-
-/* Private driver context. */
-struct drv_context {
- GSList *instances;
-};
-
/* Private, per-device-instance driver context. */
struct dev_context {
int pipe_fds[2];
return devices;
}
+static GSList *hw_dev_list(void)
+{
+ struct drv_context *drvc;
+
+ drvc = ddi->priv;
+
+ return drvc->instances;
+}
+
static int hw_dev_open(struct sr_dev_inst *sdi)
{
/* Avoid compiler warnings. */
.init = hw_init,
.cleanup = hw_cleanup,
.scan = hw_scan,
+ .dev_list = hw_dev_list,
.dev_open = hw_dev_open,
.dev_close = hw_dev_close,
.info_get = hw_info_get,