Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fuqian Huang and committed by
Greg Kroah-Hartman
8ef79565 29973f8a

+10
+10
drivers/tty/rocket.c
··· 1284 1284 1285 1285 switch (cmd) { 1286 1286 case RCKP_GET_CONFIG: 1287 + dev_warn_ratelimited(tty->dev, 1288 + "RCKP_GET_CONFIG option is deprecated\n"); 1287 1289 ret = get_config(info, argp); 1288 1290 break; 1289 1291 case RCKP_SET_CONFIG: 1292 + dev_warn_ratelimited(tty->dev, 1293 + "RCKP_SET_CONFIG option is deprecated\n"); 1290 1294 ret = set_config(tty, info, argp); 1291 1295 break; 1292 1296 case RCKP_GET_PORTS: 1297 + dev_warn_ratelimited(tty->dev, 1298 + "RCKP_GET_PORTS option is deprecated\n"); 1293 1299 ret = get_ports(info, argp); 1294 1300 break; 1295 1301 case RCKP_RESET_RM2: 1302 + dev_warn_ratelimited(tty->dev, 1303 + "RCKP_RESET_RM2 option is deprecated\n"); 1296 1304 ret = reset_rm2(info, argp); 1297 1305 break; 1298 1306 case RCKP_GET_VERSION: 1307 + dev_warn_ratelimited(tty->dev, 1308 + "RCKP_GET_VERSION option is deprecated\n"); 1299 1309 ret = get_version(info, argp); 1300 1310 break; 1301 1311 default: