aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2017-03-20 16:39:36 +0100
committerMister Oyster <oysterized@gmail.com>2017-04-11 11:00:26 +0200
commitb40cd069a444e9b23c16852012e3966ecaa99f17 (patch)
treeb58bf0d47f781dd78e79b35d9a85a1266f2eca6d /drivers/misc
parentffabe4b59ef414b92894cf5b40e4e1e59eaac011 (diff)
mtk: squashed security updates
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
index 11bbead81..dc150054a 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
@@ -704,7 +704,7 @@ ssize_t mt_gpio_store_pin(struct device* dev, struct device_attribute *attr,
#endif
int mode, pullsel, dout, pullen, dir, ies, smt;
u32 num,src,div;
- char md_str[128]="GPIO_MD_TEST";
+ //char md_str[128]="GPIO_MD_TEST";
//struct mt_gpio_obj *obj = (struct mt_gpio_obj*)dev_get_drvdata(dev);
if (!strncmp(buf, "-h", 2)) {
GPIOMSG("cat pin #show all pin setting\n");
@@ -797,9 +797,9 @@ ssize_t mt_gpio_store_pin(struct device* dev, struct device_attribute *attr,
//GPIOMSG("gpio reg test for next chip!\n");
//mt_reg_test();
} else if (!strncmp(buf, "-md", 3)) {
- buf +=3;
- sscanf(buf,"%s",md_str);
- mt_get_md_gpio_debug(md_str);
+ //buf +=3;
+ //sscanf(buf,"%s",md_str);
+ //mt_get_md_gpio_debug(md_str);
} else if (!strncmp(buf, "-k", 2)) {
buf += 2;
if (!strncmp(buf, "s", 1) && (3 == sscanf(buf+1, "%d %d %d", &num, &src, &div)))