Commit 7be56b6
committed
driver: Choose brightness function according to bit width
MIPI panels with 16-bit brightness communicate it in big endian, while
the original brightness functions handle it in little endian. For 16-bit
brightness, variants of these functions should be used. Use these
variants for panels with a maximum brightness greater than or equal to
256 (more than 8 bits), while still using the original function for
8-bit (max < 256) brightness.
Link: https://lore.kernel.org/dri-devel/[email protected]/
Signed-off-by: Richard Acayan <[email protected]>1 parent 518c67b commit 7be56b6
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
| |||
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
259 | | - | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
278 | 282 | | |
279 | 283 | | |
280 | 284 | | |
281 | | - | |
| 285 | + | |
282 | 286 | | |
283 | 287 | | |
284 | 288 | | |
| |||
0 commit comments