Commit a43adf2b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

strnicmp -> strncasecmp

parent 35086086
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -3272,7 +3272,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
	int rc;
	int rc;
	if (((rc=_verify_output_channel(client,chn)))<0) return rc;
	if (((rc=_verify_output_channel(client,chn)))<0) return rc;
	/* parse string */
	/* parse string */
	if ((strnicmp(cp,"in",2)==0)) {
	if ((strncasecmp(cp,"in",2)==0)) {
		cp+=2;
		cp+=2;
		if ((strncmp(cp,"12",2)==0)) {
		if ((strncmp(cp,"12",2)==0)) {
			cp+=2;
			cp+=2;
@@ -3288,11 +3288,11 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
			src=3;
			src=3;
		} else return -EINVAL; /* invalid input number(s) */
		} else return -EINVAL; /* invalid input number(s) */
		src_group=0;
		src_group=0;
	} else if ((strnicmp(cp,"xo",2)==0)) {
	} else if ((strncasecmp(cp,"xo",2)==0)) {
		cp+=2;
		cp+=2;
		src_group=1;
		src_group=1;
		src=0;
		src=0;
	} else if ((strnicmp(cp,"ms",2)==0)) {
	} else if ((strncasecmp(cp,"ms",2)==0)) {
		cp+=2;
		cp+=2;
		src=cp[0]-'0';
		src=cp[0]-'0';
		cp++;
		cp++;
@@ -3301,7 +3301,7 @@ static int set_out_route(struct i2c_client *client, const char* route, int chn)
		}
		}
		src_group=2;
		src_group=2;
		div1=-1;
		div1=-1;
	} else if ((strnicmp(cp,"no",2)==0)) {
	} else if ((strncasecmp(cp,"no",2)==0)) {
		cp+=2;
		cp+=2;
		src_group=3;
		src_group=3;
	} else return -EINVAL;
	} else return -EINVAL;