Search Linux Wireless

RE: [RFC PATCH] rtw88: use txpwr_lmt_cfg_pair struct, not arrays

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

 



> Brian Norris <briannorris@xxxxxxxxxxxx> wrote:
> 
> > We're just trusting that these tables are of the right dimensions, when
> > we could do better by just using the struct directly. Let's expose the
> > struct txpwr_lmt_cfg_pair instead.
> >
> > The table changes were made by using some Vim macros, so that should
> > help prevent any translation mistakes along the way.
> >
> > Remaining work: get the 'void *data' out of the generic struct
> > rtw_table; all of these tables really deserve to be their own data
> > structure, with proper type fields.
> >
> > Signed-off-by: Brian Norris <briannorris@xxxxxxxxxxxx>
> 
> To me this looks like a clear improvement and I'm inclined to apply it. Tony,
> what do you think?

I think it indeed is better to use struct instead of arrays to access the table.
But what I am trying to do is to figure a way to write a proper struct for
radio_[ab] tables. Since the parsing logic is more complicated than others.

Once I finished them, I will send a patch to change the tables.

Yan-Hsuan




[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