Re: [PATCH 03/33] Staging: gdm724x: use match_string() helper

From: Andy Shevchenko
Date: Mon May 21 2018 - 16:40:32 EST


On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie <xieyisheng1@xxxxxxxxxx> wrote:
> match_string() returns the index of an array for a matching string,
> which can be used intead of open coded variant.


> + ret = match_string((const char **)DRIVER_STRING,
> + TTY_MAX_COUNT, tty->driver->driver_name);

It looks like DRIVER_STRING should be converted to const * const.

--
With Best Regards,
Andy Shevchenko