On Thu, Oct 22, 2015 at 10:32:27AM +0200, Linus Walleij wrote:

> +     if (cmd == GPIO_GET_CHIPINFO_IOCTL) {

> +             return 0;
> +     }
> +     return -EINVAL;

A switch statement might be more scalable as more ioctl()s are added?

Attachment: signature.asc
Description: PGP signature

Reply via email to