aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chu <david.chu@mediatek.com>2016-11-21 17:42:57 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:35:28 +0200
commit819360408e4e50b22b0d036d51d0e69e6f9e7805 (patch)
treeb6c346b0a6369b2740e3b8d4b5b974631e9bc8d1
parent082980248cf1b95608086201c76dffb644fa99f0 (diff)
GPIO: Remove unused gpio debug cmd arrary
[Detail] Remove unused gpio debug cmd arrary which will cause secure problem Bug: ALPS02943506 Change-Id: If5f63928fd5788f853e5e956d7117775e58e32a2
-rw-r--r--drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
index dc150054a..9d0bc1513 100644
--- a/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
+++ b/drivers/misc/mediatek/gpio/mt6735/mt_gpio_debug.c
@@ -686,7 +686,7 @@ ssize_t mt_gpio_show_pin(struct device* dev,
{
return mt_gpio_dump_regs(buf, PAGE_SIZE);
}
-void mt_get_md_gpio_debug(char *str);
+
/*---------------------------------------------------------------------------*/
@@ -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";
+
//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");
@@ -796,10 +796,6 @@ ssize_t mt_gpio_store_pin(struct device* dev, struct device_attribute *attr,
} else if (!strncmp(buf, "tt", 2)) {
//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);
} else if (!strncmp(buf, "-k", 2)) {
buf += 2;
if (!strncmp(buf, "s", 1) && (3 == sscanf(buf+1, "%d %d %d", &num, &src, &div)))
@@ -955,17 +951,3 @@ int mt_get_md_gpio(char * gpio_name, int len)
GPIOERR("Modem gpio name can't match!!!\n");
return -1;
}
-
-void mt_get_md_gpio_debug(char * str)
-{
- if(strcmp(str,"ALL")==0){
- int i;
- for(i=0;i<ARRAY_SIZE(mt_gpio_info);i++){
- GPIOMSG("GPIO number=%d,%s\n", mt_gpio_info[i].num, mt_gpio_info[i].name);
- }
- }else{
- GPIOMSG("GPIO number=%d,%s\n",mt_get_md_gpio(str,strlen(str)),str);
- }
- return;
-}
-