Rev 6937 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6937 | Rev 7144 | ||
---|---|---|---|
Line 183... | Line 183... | ||
183 | 183 | ||
184 | return 0; |
184 | return 0; |
185 | } |
185 | } |
Line -... | Line 186... | ||
- | 186 | EXPORT_SYMBOL(mipi_dsi_create_packet); |
|
- | 187 | ||
- | 188 | /** |
|
- | 189 | * mipi_dsi_shutdown_peripheral() - sends a Shutdown Peripheral command |
|
- | 190 | * @dsi: DSI peripheral device |
|
- | 191 | * |
|
- | 192 | * Return: 0 on success or a negative error code on failure. |
|
- | 193 | */ |
|
- | 194 | int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi) |
|
- | 195 | { |
|
- | 196 | struct mipi_dsi_msg msg = { |
|
- | 197 | .channel = dsi->channel, |
|
- | 198 | .type = MIPI_DSI_SHUTDOWN_PERIPHERAL, |
|
- | 199 | .tx_buf = (u8 [2]) { 0, 0 }, |
|
- | 200 | .tx_len = 2, |
|
- | 201 | }; |
|
- | 202 | ||
- | 203 | return mipi_dsi_device_transfer(dsi, &msg); |
|
- | 204 | } |
|
- | 205 | EXPORT_SYMBOL(mipi_dsi_shutdown_peripheral); |
|
- | 206 | ||
- | 207 | /** |
|
- | 208 | * mipi_dsi_turn_on_peripheral() - sends a Turn On Peripheral command |
|
- | 209 | * @dsi: DSI peripheral device |
|
- | 210 | * |
|
- | 211 | * Return: 0 on success or a negative error code on failure. |
|
- | 212 | */ |
|
- | 213 | int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi) |
|
- | 214 | { |
|
- | 215 | struct mipi_dsi_msg msg = { |
|
- | 216 | .channel = dsi->channel, |
|
- | 217 | .type = MIPI_DSI_TURN_ON_PERIPHERAL, |
|
- | 218 | .tx_buf = (u8 [2]) { 0, 0 }, |
|
- | 219 | .tx_len = 2, |
|
- | 220 | }; |
|
- | 221 | ||
- | 222 | return mipi_dsi_device_transfer(dsi, &msg); |
|
- | 223 | } |
|
186 | EXPORT_SYMBOL(mipi_dsi_create_packet); |
224 | EXPORT_SYMBOL(mipi_dsi_turn_on_peripheral); |
187 | 225 | ||
188 | /* |
226 | /* |
189 | * mipi_dsi_set_maximum_return_packet_size() - specify the maximum size of the |
227 | * mipi_dsi_set_maximum_return_packet_size() - specify the maximum size of the |
190 | * the payload in a long packet transmitted from the peripheral back to the |
228 | * the payload in a long packet transmitted from the peripheral back to the |