Skip to content

Commit 4de48df

Browse files
committed
mipi: Drop custom DSI write macros
Some changes appeared on linux-next to drop these macros from every generated panel driver in favor of using global macros instead. Reflect this change in the generator so it doesn't have to be applied to every generated driver. Link: https://lore.kernel.org/dri-devel/[email protected]/ Signed-off-by: Richard Acayan <[email protected]>
1 parent 1fe61f0 commit 4de48df

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mipi.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,14 @@ def _generate_checked_call(method: str, args: List[str], description: str) -> st
189189

190190

191191
MACROS = {
192-
'dsi_generic_write_seq': 'mipi_dsi_generic_write',
193-
'dsi_dcs_write_seq': 'mipi_dsi_dcs_write_buffer',
194192
}
195193

196194

197195
def _generate_generic_write(t: Transaction, payload: bytes, options: Options) -> str:
198196
# TODO: Warn when downstream uses LONG_WRITE but mainline would use SHORT
199197
params = _get_params_hex(payload)
200198
params.insert(0, 'dsi')
201-
return wrap.join('\tdsi_generic_write_seq(', ',', ');', params, force=2)
199+
return wrap.join('\tmipi_dsi_generic_write_seq(', ',', ');', params, force=2)
202200

203201

204202
def _generate_dcs_write(t: Transaction, payload: bytes, options: Options) -> str:
@@ -213,7 +211,7 @@ def _generate_dcs_write(t: Transaction, payload: bytes, options: Options) -> str
213211
params[0] = dcs.identifier
214212
params.insert(0, 'dsi')
215213

216-
return wrap.join('\tdsi_dcs_write_seq(', ',', ');', params, force=2)
214+
return wrap.join('\tmipi_dsi_dcs_write_seq(', ',', ');', params, force=2)
217215

218216

219217
def _generate_peripheral(t: Transaction, payload: bytes, options: Options) -> str:

0 commit comments

Comments
 (0)