tsif: tsif1 initialization bug fix
When using CONFIG_MSM_USE_TSIF1 to enable the second tsif instance,
the device initialization failed because of a errant device ID. The
check has been updated to accept the correct device ID range (0..1)
Signed-off-by: Joel Nider <jnider@codeaurora.org>
diff --git a/include/linux/tsif_api.h b/include/linux/tsif_api.h
index 3142b7b..fc4d20b 100644
--- a/include/linux/tsif_api.h
+++ b/include/linux/tsif_api.h
@@ -105,6 +105,13 @@
};
/**
+ * tsif_get_active - return active tsif hardware instance
+ *
+ * Return TSIF instance to use (selected by CONFIG_MSM_USE_TSIF1)
+ */
+int tsif_get_active(void);
+
+/**
* tsif_attach - Attach to the device.
* @id: TSIF device ID, used to identify TSIF instance.
* @notify: client callback, called when