From: Ivan Priest Date: Wed, 4 Jul 2018 14:55:56 +0000 (+0100) Subject: [9610][7885][7872][7570] wlbt: add additional release counter X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28db33b2da6cd246a94976cea878534acdb20637;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610][7885][7872][7570] wlbt: add additional release counter Add another decimal point to describe the downstream patch level. Change-Id: Ia913a2bb89236878e6d13a823855f7ea0411ba1f SCSC-Bug-Id: SSB-41599 Signed-off-by: Ivan Priest --- diff --git a/drivers/misc/samsung/scsc/mxman.c b/drivers/misc/samsung/scsc/mxman.c index bfaf6636a2b8..daf53b008b20 100755 --- a/drivers/misc/samsung/scsc/mxman.c +++ b/drivers/misc/samsung/scsc/mxman.c @@ -367,8 +367,8 @@ static void write_m_test_fw_version_file(struct mxman *mxman) SCSC_TAG_INFO(MXMAN, "%s doesn't exist.\n", filepath); return; } - snprintf(buf, sizeof(buf), "drv_ver: %d.%d.%d N (f/w: %s)\n", - SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE, + snprintf(buf, sizeof(buf), "drv_ver: %d.%d.%d.%d N (f/w: %s)\n", + SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE, SCSC_RELEASE_POINT, build_id ? build_id : "unknown"); #ifdef CONFIG_SCSC_WLBTD scsc_wlbtd_get_and_print_build_type(); @@ -428,8 +428,8 @@ static void mxman_print_versions(struct mxman *mxman) SCSC_TAG_INFO(MXMAN, "%s", buf); SCSC_TAG_INFO(MXMAN, "WLBT FW: %s\n", mxman->fw_build_id); - SCSC_TAG_INFO(MXMAN, "WLBT Driver: %d.%d.%d\n", - SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE); + SCSC_TAG_INFO(MXMAN, "WLBT Driver: %d.%d.%d.%d\n", + SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE, SCSC_RELEASE_POINT); #ifdef CONFIG_SCSC_WLBTD scsc_wlbtd_get_and_print_build_type(); #endif @@ -1267,10 +1267,11 @@ static void mxman_failure_work(struct work_struct *work) process_panic_record(mxman); SCSC_TAG_INFO(MXMAN, "Trying to schedule coredump\n"); - SCSC_TAG_INFO(MXMAN, "scsc_release %d.%d.%d\n", + SCSC_TAG_INFO(MXMAN, "scsc_release %d.%d.%d.%d\n", SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, - SCSC_RELEASE_CANDIDATE); + SCSC_RELEASE_CANDIDATE, + SCSC_RELEASE_POINT); #ifdef CONFIG_SCSC_WLBTD scsc_wlbtd_get_and_print_build_type(); #endif @@ -1996,8 +1997,8 @@ EXPORT_SYMBOL(mxman_get_fw_version); void mxman_get_driver_version(char *version, size_t ver_sz) { - snprintf(version, ver_sz - 1, "drv_ver: %d.%d.%d", - SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE); + snprintf(version, ver_sz - 1, "drv_ver: %d.%d.%d.%d", + SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE, SCSC_RELEASE_POINT); #ifdef CONFIG_SCSC_WLBTD scsc_wlbtd_get_and_print_build_type(); #endif diff --git a/drivers/misc/samsung/scsc/mxproc.c b/drivers/misc/samsung/scsc/mxproc.c index 4d7de78733b1..9ec5a7e1ba5a 100644 --- a/drivers/misc/samsung/scsc/mxproc.c +++ b/drivers/misc/samsung/scsc/mxproc.c @@ -474,8 +474,8 @@ static ssize_t mx_procfs_mx_release_read(struct file *file, char __user *user_bu memset(buf, '\0', sizeof(buf)); - bytes = snprintf(buf, sizeof(buf), "Release: %d.%d.%d (f/w: %s)\n", - SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE, + bytes = snprintf(buf, sizeof(buf), "Release: %d.%d.%d.%d (f/w: %s)\n", + SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, SCSC_RELEASE_CANDIDATE, SCSC_RELEASE_POINT, build_id ? build_id : "unknown"); #ifdef CONFIG_SCSC_WLBTD scsc_wlbtd_get_and_print_build_type(); diff --git a/drivers/misc/samsung/scsc/scsc_mx_module.c b/drivers/misc/samsung/scsc/scsc_mx_module.c index d05a83c459b6..e11f4c29a1e3 100755 --- a/drivers/misc/samsung/scsc/scsc_mx_module.c +++ b/drivers/misc/samsung/scsc/scsc_mx_module.c @@ -102,10 +102,11 @@ static struct scsc_mif_abs_driver mx_module_mif_if = { static int __init scsc_mx_module_init(void) { - SCSC_TAG_INFO(MXMAN, SCSC_MX_CORE_MODDESC " scsc_release %d.%d.%d\n", + SCSC_TAG_INFO(MXMAN, SCSC_MX_CORE_MODDESC " scsc_release %d.%d.%d.%d\n", SCSC_RELEASE_PRODUCT, SCSC_RELEASE_ITERATION, - SCSC_RELEASE_CANDIDATE); + SCSC_RELEASE_CANDIDATE, + SCSC_RELEASE_POINT); #ifdef CONFIG_SCSC_WLBTD scsc_wlbtd_get_and_print_build_type(); #endif diff --git a/include/scsc/scsc_release.h b/include/scsc/scsc_release.h index 63adf7b83962..33a8eed6151b 100644 --- a/include/scsc/scsc_release.h +++ b/include/scsc/scsc_release.h @@ -13,6 +13,7 @@ #define SCSC_RELEASE_ITERATION 34 #define SCSC_RELEASE_CANDIDATE 2 +#define SCSC_RELEASE_POINT 0 #endif