diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-04-18 12:35:58 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-25 11:58:56 +0200 |
commit | 8ef795653d753e3d6ae67e6f4a0168ff3c059deb (patch) | |
tree | 9cf497dd0694328b9361d6c69674e4b00579e623 | |
parent | 29973f8a88b001ebc605c88cdee124f7256ecdbf (diff) | |
download | linux-8ef795653d753e3d6ae67e6f4a0168ff3c059deb.tar.bz2 |
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: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/rocket.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c index b6543e28bd8b..1e1bcb54b680 100644 --- a/drivers/tty/rocket.c +++ b/drivers/tty/rocket.c @@ -1284,18 +1284,28 @@ static int rp_ioctl(struct tty_struct *tty, switch (cmd) { case RCKP_GET_CONFIG: + dev_warn_ratelimited(tty->dev, + "RCKP_GET_CONFIG option is deprecated\n"); ret = get_config(info, argp); break; case RCKP_SET_CONFIG: + dev_warn_ratelimited(tty->dev, + "RCKP_SET_CONFIG option is deprecated\n"); ret = set_config(tty, info, argp); break; case RCKP_GET_PORTS: + dev_warn_ratelimited(tty->dev, + "RCKP_GET_PORTS option is deprecated\n"); ret = get_ports(info, argp); break; case RCKP_RESET_RM2: + dev_warn_ratelimited(tty->dev, + "RCKP_RESET_RM2 option is deprecated\n"); ret = reset_rm2(info, argp); break; case RCKP_GET_VERSION: + dev_warn_ratelimited(tty->dev, + "RCKP_GET_VERSION option is deprecated\n"); ret = get_version(info, argp); break; default: |