Commit 2fe5db9
committed
Fix build for kernel 6.17
* With commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b74947b4f6ff7c122a1bb6eb38bb7ecfbb1d3820
set_wiphy_params(), set/get_tx_power() and set_antenna() gain argument
radio_idx to get radio index. So let's add that argument according to
linux version >= 6.17.
* With commit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a5589313383074c48a1b3751d592a6e084ae0573
devm_gpio_request() is dropped in favor of devm_gpio_request_one().
devm_gpio_request_one() requires flags to setup gpio status, but it's
not specified in wilc_of_parse_power_pins() so keep them as GPIOF_IN
since they get defined in wilc_wlan_power() called very soon after
wilc_of_parse_power_pins().
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>1 parent d0bd363 commit 2fe5db9
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1003 | 1006 | | |
| 1007 | + | |
1004 | 1008 | | |
1005 | 1009 | | |
1006 | 1010 | | |
| |||
2209 | 2213 | | |
2210 | 2214 | | |
2211 | 2215 | | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
2212 | 2219 | | |
2213 | 2220 | | |
2214 | 2221 | | |
| |||
2241 | 2248 | | |
2242 | 2249 | | |
2243 | 2250 | | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
2244 | 2254 | | |
2245 | 2255 | | |
2246 | 2256 | | |
| |||
2263 | 2273 | | |
2264 | 2274 | | |
2265 | 2275 | | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
2266 | 2280 | | |
| 2281 | + | |
2267 | 2282 | | |
2268 | 2283 | | |
2269 | 2284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
44 | 53 | | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
0 commit comments