Re: [PATCH] pl2303: fixed handling of CS5 setting. 5 databits work now

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 03, 2013 at 06:11:23PM +0100, Johan Hovold wrote:

> >> +       switch (C_CSIZE(tty)) {
> >> +       case CS5:
> >> +               buf[6] = 5;
> >> +               break;
> >> +       case CS6:
> >> +               buf[6] = 6;
> >> +               break;
> >> +       case CS7:
> >> +               buf[6] = 7;
> >> +               break;
> >> +       default:
> >
> > You can drop the default-case as CSIZE is a two-bit mask.

Nevermind. Just leave it there to keep gcc happy.

Thanks,
Johan

> +       case CS8:
> +               buf[6] = 8;
>         }
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux