Add driver ID
authorTracy Yi <tracy-yi@ti.com>
Tue, 23 Apr 2019 06:45:15 +0000 (14:45 +0800)
committerTracy Yi <tracy-yi@ti.com>
Tue, 23 Apr 2019 06:45:15 +0000 (14:45 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2563-regmap.c
tas2563.h

index 3a98cdb751588e57b7c290759c3c4e7bfc5771bd..6056ed989f88b35b8bc7eb45e9f5636e42ce75b7 100755 (executable)
@@ -635,6 +635,7 @@ static int tas2563_i2c_probe(struct i2c_client *pClient,
        unsigned int nValue = 0;
        const char *pFWName;
 
+       dev_err(&pClient->dev, "Driver ID: %s\n", TAS2563_DRIVER_ID);
        dev_info(&pClient->dev, "%s enter\n", __func__);
 
        pTAS2563 = devm_kzalloc(&pClient->dev, sizeof(struct tas2563_priv), GFP_KERNEL);
index f07ea83a0d5aba7e4cef04fe1e42cea6956138ec..8111d66ae004b8f2a2b25dcf784d8d047ef300fc 100644 (file)
--- a/tas2563.h
+++ b/tas2563.h
@@ -2,6 +2,8 @@
 #ifndef __TAS2563_
 #define __TAS2563_
 
+#define TAS2563_DRIVER_ID           "1.0.0"
+
 #define TAS2563_YRAM_BOOK1                             140
 
 #define TAS2563_YRAM1_PAGE                             42