Commit 8ef79565 authored by Fuqian Huang's avatar Fuqian Huang Committed by Greg Kroah-Hartman

tty: rocket: deprecate the rp_ioctl

The rp_ioctl is deprecated.
Add dev_warn_ratelimited to warn the use of rp_ioctl.
Signed-off-by: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29973f8a
...@@ -1284,18 +1284,28 @@ static int rp_ioctl(struct tty_struct *tty, ...@@ -1284,18 +1284,28 @@ static int rp_ioctl(struct tty_struct *tty,
switch (cmd) { switch (cmd) {
case RCKP_GET_CONFIG: case RCKP_GET_CONFIG:
dev_warn_ratelimited(tty->dev,
"RCKP_GET_CONFIG option is deprecated\n");
ret = get_config(info, argp); ret = get_config(info, argp);
break; break;
case RCKP_SET_CONFIG: case RCKP_SET_CONFIG:
dev_warn_ratelimited(tty->dev,
"RCKP_SET_CONFIG option is deprecated\n");
ret = set_config(tty, info, argp); ret = set_config(tty, info, argp);
break; break;
case RCKP_GET_PORTS: case RCKP_GET_PORTS:
dev_warn_ratelimited(tty->dev,
"RCKP_GET_PORTS option is deprecated\n");
ret = get_ports(info, argp); ret = get_ports(info, argp);
break; break;
case RCKP_RESET_RM2: case RCKP_RESET_RM2:
dev_warn_ratelimited(tty->dev,
"RCKP_RESET_RM2 option is deprecated\n");
ret = reset_rm2(info, argp); ret = reset_rm2(info, argp);
break; break;
case RCKP_GET_VERSION: case RCKP_GET_VERSION:
dev_warn_ratelimited(tty->dev,
"RCKP_GET_VERSION option is deprecated\n");
ret = get_version(info, argp); ret = get_version(info, argp);
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment