Introduce a DEV macro to retrieve struct device from private[]
data structure in preparation to replacing custom logging
macros with proper dev_dbg and friends which require struct
device.
diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h[]
@@ -103,6 +103,8 @@
#define SSI_LOG_DEBUG(format, ...) do {} while (0)
#endif
+#define DEV(drvdata) ((&(drvdata)->plat_dev->dev))
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 26:31:31 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,193 |
Messages: | 5,327,955 |