Search Linux Wireless

RE: [PATCH] wifi: rtw88: Add USB PHY configuration

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

 



Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote:
> Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote:
> > +
> > +static void rtw_usb_phy_write(struct rtw_dev *rtwdev, u16 addr, u16 data,
> > +                             enum usb_device_speed speed)
> > +{
> > +       if (speed == USB_SPEED_SUPER) {
> > +               rtw_write8(rtwdev, 0xff0d, (u8)data);
> > +               rtw_write8(rtwdev, 0xff0e, (u8)(data >> 8));
> > +               rtw_write8(rtwdev, 0xff0c, addr | BIT(7));
> 
> The casting of u8 is not unnecessary.
> 

Sorry for the typo. I meant "... is not necessary."






[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux