Lines Matching +full:mipi +full:- +full:dsi
2 * MIPI DSI Bus
4 * Copyright (C) 2012-2013, Samsung Electronics, Co., Ltd.
21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
41 * DOC: dsi helpers
43 * These functions contain some common logic and helpers to deal with MIPI DSI
46 * Helpers are provided for a number of standard MIPI DSI command as well as a
47 * subset of the MIPI DCS command set.
52 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_device_match() local
58 /* compare DSI device and driver names */ in mipi_dsi_device_match()
59 if (!strcmp(dsi->name, drv->name)) in mipi_dsi_device_match()
67 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_uevent() local
71 if (err != -ENODEV) in mipi_dsi_uevent()
75 dsi->name); in mipi_dsi_uevent()
92 .name = "mipi-dsi",
99 * of_find_mipi_dsi_device_by_node() - find the MIPI DSI device matching a
103 * Return: A pointer to the MIPI DSI device corresponding to @np or NULL if no
118 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_dev_release() local
120 of_node_put(dev->of_node); in mipi_dsi_dev_release()
121 kfree(dsi); in mipi_dsi_dev_release()
130 struct mipi_dsi_device *dsi; in mipi_dsi_device_alloc() local
132 dsi = kzalloc(sizeof(*dsi), GFP_KERNEL); in mipi_dsi_device_alloc()
133 if (!dsi) in mipi_dsi_device_alloc()
134 return ERR_PTR(-ENOMEM); in mipi_dsi_device_alloc()
136 dsi->host = host; in mipi_dsi_device_alloc()
137 dsi->dev.bus = &mipi_dsi_bus_type; in mipi_dsi_device_alloc()
138 dsi->dev.parent = host->dev; in mipi_dsi_device_alloc()
139 dsi->dev.type = &mipi_dsi_device_type; in mipi_dsi_device_alloc()
141 device_initialize(&dsi->dev); in mipi_dsi_device_alloc()
143 return dsi; in mipi_dsi_device_alloc()
146 static int mipi_dsi_device_add(struct mipi_dsi_device *dsi) in mipi_dsi_device_add() argument
148 struct mipi_dsi_host *host = dsi->host; in mipi_dsi_device_add()
150 dev_set_name(&dsi->dev, "%s.%d", dev_name(host->dev), dsi->channel); in mipi_dsi_device_add()
152 return device_add(&dsi->dev); in mipi_dsi_device_add()
165 return ERR_PTR(-EINVAL); in of_mipi_dsi_device_add()
172 return ERR_PTR(-EINVAL); in of_mipi_dsi_device_add()
184 return ERR_PTR(-ENODEV); in of_mipi_dsi_device_add()
189 * mipi_dsi_device_register_full - create a MIPI DSI device
190 * @host: DSI host to which this device is connected
191 * @info: pointer to template containing DSI device information
193 * Create a MIPI DSI device by using the device information provided by
197 * A pointer to the newly created MIPI DSI device, or, a pointer encoded
204 struct mipi_dsi_device *dsi; in mipi_dsi_device_register_full() local
209 return ERR_PTR(-EINVAL); in mipi_dsi_device_register_full()
212 if (info->channel > 3) { in mipi_dsi_device_register_full()
213 drm_err(host, "invalid virtual channel: %u\n", info->channel); in mipi_dsi_device_register_full()
214 return ERR_PTR(-EINVAL); in mipi_dsi_device_register_full()
217 dsi = mipi_dsi_device_alloc(host); in mipi_dsi_device_register_full()
218 if (IS_ERR(dsi)) { in mipi_dsi_device_register_full()
219 drm_err(host, "failed to allocate DSI device %ld\n", in mipi_dsi_device_register_full()
220 PTR_ERR(dsi)); in mipi_dsi_device_register_full()
221 return dsi; in mipi_dsi_device_register_full()
224 dsi->dev.of_node = info->node; in mipi_dsi_device_register_full()
225 dsi->channel = info->channel; in mipi_dsi_device_register_full()
226 strlcpy(dsi->name, info->type, sizeof(dsi->name)); in mipi_dsi_device_register_full()
228 ret = mipi_dsi_device_add(dsi); in mipi_dsi_device_register_full()
230 drm_err(host, "failed to add DSI device %d\n", ret); in mipi_dsi_device_register_full()
231 kfree(dsi); in mipi_dsi_device_register_full()
235 return dsi; in mipi_dsi_device_register_full()
240 * mipi_dsi_device_unregister - unregister MIPI DSI device
241 * @dsi: DSI peripheral device
243 void mipi_dsi_device_unregister(struct mipi_dsi_device *dsi) in mipi_dsi_device_unregister() argument
245 device_unregister(&dsi->dev); in mipi_dsi_device_unregister()
251 struct mipi_dsi_device *dsi = arg; in devm_mipi_dsi_device_unregister() local
253 mipi_dsi_device_unregister(dsi); in devm_mipi_dsi_device_unregister()
257 * devm_mipi_dsi_device_register_full - create a managed MIPI DSI device
258 * @dev: device to tie the MIPI-DSI device lifetime to
259 * @host: DSI host to which this device is connected
260 * @info: pointer to template containing DSI device information
262 * Create a MIPI DSI device by using the device information provided by
270 * A pointer to the newly created MIPI DSI device, or, a pointer encoded
278 struct mipi_dsi_device *dsi; in devm_mipi_dsi_device_register_full() local
281 dsi = mipi_dsi_device_register_full(host, info); in devm_mipi_dsi_device_register_full()
282 if (IS_ERR(dsi)) in devm_mipi_dsi_device_register_full()
283 return dsi; in devm_mipi_dsi_device_register_full()
287 dsi); in devm_mipi_dsi_device_register_full()
291 return dsi; in devm_mipi_dsi_device_register_full()
299 * of_find_mipi_dsi_host_by_node() - find the MIPI DSI host matching a
304 * A pointer to the MIPI DSI host corresponding to @node or NULL if no
314 if (host->dev->of_node == node) { in of_find_mipi_dsi_host_by_node()
330 for_each_available_child_of_node(host->dev->of_node, node) { in mipi_dsi_host_register()
338 list_add_tail(&host->list, &host_list); in mipi_dsi_host_register()
347 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_remove_device_fn() local
349 mipi_dsi_detach(dsi); in mipi_dsi_remove_device_fn()
350 mipi_dsi_device_unregister(dsi); in mipi_dsi_remove_device_fn()
357 device_for_each_child(host->dev, NULL, mipi_dsi_remove_device_fn); in mipi_dsi_host_unregister()
360 list_del_init(&host->list); in mipi_dsi_host_unregister()
366 * mipi_dsi_attach - attach a DSI device to its DSI host
367 * @dsi: DSI peripheral
369 int mipi_dsi_attach(struct mipi_dsi_device *dsi) in mipi_dsi_attach() argument
371 const struct mipi_dsi_host_ops *ops = dsi->host->ops; in mipi_dsi_attach()
373 if (!ops || !ops->attach) in mipi_dsi_attach()
374 return -ENOSYS; in mipi_dsi_attach()
376 return ops->attach(dsi->host, dsi); in mipi_dsi_attach()
381 * mipi_dsi_detach - detach a DSI device from its DSI host
382 * @dsi: DSI peripheral
384 int mipi_dsi_detach(struct mipi_dsi_device *dsi) in mipi_dsi_detach() argument
386 const struct mipi_dsi_host_ops *ops = dsi->host->ops; in mipi_dsi_detach()
388 if (!ops || !ops->detach) in mipi_dsi_detach()
389 return -ENOSYS; in mipi_dsi_detach()
391 return ops->detach(dsi->host, dsi); in mipi_dsi_detach()
397 struct mipi_dsi_device *dsi = arg; in devm_mipi_dsi_detach() local
399 mipi_dsi_detach(dsi); in devm_mipi_dsi_detach()
403 * devm_mipi_dsi_attach - Attach a MIPI-DSI device to its DSI Host
404 * @dev: device to tie the MIPI-DSI device attachment lifetime to
405 * @dsi: DSI peripheral
414 struct mipi_dsi_device *dsi) in devm_mipi_dsi_attach() argument
418 ret = mipi_dsi_attach(dsi); in devm_mipi_dsi_attach()
422 ret = devm_add_action_or_reset(dev, devm_mipi_dsi_detach, dsi); in devm_mipi_dsi_attach()
430 static ssize_t mipi_dsi_device_transfer(struct mipi_dsi_device *dsi, in mipi_dsi_device_transfer() argument
433 const struct mipi_dsi_host_ops *ops = dsi->host->ops; in mipi_dsi_device_transfer()
435 if (!ops || !ops->transfer) in mipi_dsi_device_transfer()
436 return -ENOSYS; in mipi_dsi_device_transfer()
438 if (dsi->mode_flags & MIPI_DSI_MODE_LPM) in mipi_dsi_device_transfer()
439 msg->flags |= MIPI_DSI_MSG_USE_LPM; in mipi_dsi_device_transfer()
441 return ops->transfer(dsi->host, msg); in mipi_dsi_device_transfer()
445 * mipi_dsi_packet_format_is_short - check if a packet is of the short format
446 * @type: MIPI DSI data type of the packet
483 * mipi_dsi_packet_format_is_long - check if a packet is of the long format
484 * @type: MIPI DSI data type of the packet
516 * mipi_dsi_create_packet - create a packet from a message according to the
517 * DSI protocol
518 * @packet: pointer to a DSI packet structure
527 return -EINVAL; in mipi_dsi_create_packet()
530 if (!mipi_dsi_packet_format_is_short(msg->type) && in mipi_dsi_create_packet()
531 !mipi_dsi_packet_format_is_long(msg->type)) in mipi_dsi_create_packet()
532 return -EINVAL; in mipi_dsi_create_packet()
534 if (msg->channel > 3) in mipi_dsi_create_packet()
535 return -EINVAL; in mipi_dsi_create_packet()
538 packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); in mipi_dsi_create_packet()
549 if (mipi_dsi_packet_format_is_long(msg->type)) { in mipi_dsi_create_packet()
550 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet()
551 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet()
553 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet()
554 packet->payload = msg->tx_buf; in mipi_dsi_create_packet()
556 const u8 *tx = msg->tx_buf; in mipi_dsi_create_packet()
558 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet()
559 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet()
562 packet->size = sizeof(packet->header) + packet->payload_length; in mipi_dsi_create_packet()
569 * mipi_dsi_shutdown_peripheral() - sends a Shutdown Peripheral command
570 * @dsi: DSI peripheral device
574 int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi) in mipi_dsi_shutdown_peripheral() argument
577 .channel = dsi->channel, in mipi_dsi_shutdown_peripheral()
582 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_shutdown_peripheral()
589 * mipi_dsi_turn_on_peripheral() - sends a Turn On Peripheral command
590 * @dsi: DSI peripheral device
594 int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi) in mipi_dsi_turn_on_peripheral() argument
597 .channel = dsi->channel, in mipi_dsi_turn_on_peripheral()
602 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_turn_on_peripheral()
609 * mipi_dsi_set_maximum_return_packet_size() - specify the maximum size of the
612 * @dsi: DSI peripheral device
617 int mipi_dsi_set_maximum_return_packet_size(struct mipi_dsi_device *dsi, in mipi_dsi_set_maximum_return_packet_size() argument
622 .channel = dsi->channel, in mipi_dsi_set_maximum_return_packet_size()
627 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_set_maximum_return_packet_size()
634 * mipi_dsi_compression_mode() - enable/disable DSC on the peripheral
635 * @dsi: DSI peripheral device
643 ssize_t mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable) in mipi_dsi_compression_mode() argument
645 /* Note: Needs updating for non-default PPS or algorithm */ in mipi_dsi_compression_mode()
648 .channel = dsi->channel, in mipi_dsi_compression_mode()
653 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_compression_mode()
660 * mipi_dsi_picture_parameter_set() - transmit the DSC PPS to the peripheral
661 * @dsi: DSI peripheral device
668 ssize_t mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi, in mipi_dsi_picture_parameter_set() argument
672 .channel = dsi->channel, in mipi_dsi_picture_parameter_set()
677 int ret = mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_picture_parameter_set()
684 * mipi_dsi_generic_write() - transmit data using a generic write packet
685 * @dsi: DSI peripheral device
695 ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload, in mipi_dsi_generic_write() argument
699 .channel = dsi->channel, in mipi_dsi_generic_write()
722 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_generic_write()
727 * mipi_dsi_generic_read() - receive data using a generic read packet
728 * @dsi: DSI peripheral device
740 ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params, in mipi_dsi_generic_read() argument
744 .channel = dsi->channel, in mipi_dsi_generic_read()
765 return -EINVAL; in mipi_dsi_generic_read()
768 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_generic_read()
773 * mipi_dsi_dcs_write_buffer() - transmit a DCS command with payload
774 * @dsi: DSI peripheral device
784 ssize_t mipi_dsi_dcs_write_buffer(struct mipi_dsi_device *dsi, in mipi_dsi_dcs_write_buffer() argument
788 .channel = dsi->channel, in mipi_dsi_dcs_write_buffer()
795 return -EINVAL; in mipi_dsi_dcs_write_buffer()
810 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_dcs_write_buffer()
815 * mipi_dsi_dcs_write() - send DCS write command
816 * @dsi: DSI peripheral device
827 ssize_t mipi_dsi_dcs_write(struct mipi_dsi_device *dsi, u8 cmd, in mipi_dsi_dcs_write() argument
836 if (len > ARRAY_SIZE(stack_tx) - 1) { in mipi_dsi_dcs_write()
839 return -ENOMEM; in mipi_dsi_dcs_write()
849 err = mipi_dsi_dcs_write_buffer(dsi, tx, size); in mipi_dsi_dcs_write()
859 * mipi_dsi_dcs_read() - send DCS read request command
860 * @dsi: DSI peripheral device
867 ssize_t mipi_dsi_dcs_read(struct mipi_dsi_device *dsi, u8 cmd, void *data, in mipi_dsi_dcs_read() argument
871 .channel = dsi->channel, in mipi_dsi_dcs_read()
879 return mipi_dsi_device_transfer(dsi, &msg); in mipi_dsi_dcs_read()
884 * mipi_dsi_dcs_nop() - send DCS nop packet
885 * @dsi: DSI peripheral device
889 int mipi_dsi_dcs_nop(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_nop() argument
893 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_NOP, NULL, 0); in mipi_dsi_dcs_nop()
902 * mipi_dsi_dcs_soft_reset() - perform a software reset of the display module
903 * @dsi: DSI peripheral device
907 int mipi_dsi_dcs_soft_reset(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_soft_reset() argument
911 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SOFT_RESET, NULL, 0); in mipi_dsi_dcs_soft_reset()
920 * mipi_dsi_dcs_get_power_mode() - query the display module's current power
922 * @dsi: DSI peripheral device
927 int mipi_dsi_dcs_get_power_mode(struct mipi_dsi_device *dsi, u8 *mode) in mipi_dsi_dcs_get_power_mode() argument
931 err = mipi_dsi_dcs_read(dsi, MIPI_DCS_GET_POWER_MODE, mode, in mipi_dsi_dcs_get_power_mode()
935 err = -ENODATA; in mipi_dsi_dcs_get_power_mode()
945 * mipi_dsi_dcs_get_pixel_format() - gets the pixel format for the RGB image
947 * @dsi: DSI peripheral device
952 int mipi_dsi_dcs_get_pixel_format(struct mipi_dsi_device *dsi, u8 *format) in mipi_dsi_dcs_get_pixel_format() argument
956 err = mipi_dsi_dcs_read(dsi, MIPI_DCS_GET_PIXEL_FORMAT, format, in mipi_dsi_dcs_get_pixel_format()
960 err = -ENODATA; in mipi_dsi_dcs_get_pixel_format()
970 * mipi_dsi_dcs_enter_sleep_mode() - disable all unnecessary blocks inside the
972 * @dsi: DSI peripheral device
976 int mipi_dsi_dcs_enter_sleep_mode(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_enter_sleep_mode() argument
980 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_ENTER_SLEEP_MODE, NULL, 0); in mipi_dsi_dcs_enter_sleep_mode()
989 * mipi_dsi_dcs_exit_sleep_mode() - enable all blocks inside the display
991 * @dsi: DSI peripheral device
995 int mipi_dsi_dcs_exit_sleep_mode(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_exit_sleep_mode() argument
999 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_EXIT_SLEEP_MODE, NULL, 0); in mipi_dsi_dcs_exit_sleep_mode()
1008 * mipi_dsi_dcs_set_display_off() - stop displaying the image data on the
1010 * @dsi: DSI peripheral device
1014 int mipi_dsi_dcs_set_display_off(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_set_display_off() argument
1018 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_DISPLAY_OFF, NULL, 0); in mipi_dsi_dcs_set_display_off()
1027 * mipi_dsi_dcs_set_display_on() - start displaying the image data on the
1029 * @dsi: DSI peripheral device
1033 int mipi_dsi_dcs_set_display_on(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_set_display_on() argument
1037 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_DISPLAY_ON, NULL, 0); in mipi_dsi_dcs_set_display_on()
1046 * mipi_dsi_dcs_set_column_address() - define the column extent of the frame
1048 * @dsi: DSI peripheral device
1054 int mipi_dsi_dcs_set_column_address(struct mipi_dsi_device *dsi, u16 start, in mipi_dsi_dcs_set_column_address() argument
1060 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_COLUMN_ADDRESS, payload, in mipi_dsi_dcs_set_column_address()
1070 * mipi_dsi_dcs_set_page_address() - define the page extent of the frame
1072 * @dsi: DSI peripheral device
1078 int mipi_dsi_dcs_set_page_address(struct mipi_dsi_device *dsi, u16 start, in mipi_dsi_dcs_set_page_address() argument
1084 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_PAGE_ADDRESS, payload, in mipi_dsi_dcs_set_page_address()
1094 * mipi_dsi_dcs_set_tear_off() - turn off the display module's Tearing Effect
1096 * @dsi: DSI peripheral device
1100 int mipi_dsi_dcs_set_tear_off(struct mipi_dsi_device *dsi) in mipi_dsi_dcs_set_tear_off() argument
1104 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_TEAR_OFF, NULL, 0); in mipi_dsi_dcs_set_tear_off()
1113 * mipi_dsi_dcs_set_tear_on() - turn on the display module's Tearing Effect
1115 * @dsi: DSI peripheral device
1120 int mipi_dsi_dcs_set_tear_on(struct mipi_dsi_device *dsi, in mipi_dsi_dcs_set_tear_on() argument
1126 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_TEAR_ON, &value, in mipi_dsi_dcs_set_tear_on()
1136 * mipi_dsi_dcs_set_pixel_format() - sets the pixel format for the RGB image
1138 * @dsi: DSI peripheral device
1143 int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format) in mipi_dsi_dcs_set_pixel_format() argument
1147 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_PIXEL_FORMAT, &format, in mipi_dsi_dcs_set_pixel_format()
1157 * mipi_dsi_dcs_set_tear_scanline() - set the scanline to use as trigger for
1159 * @dsi: DSI peripheral device
1164 int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline) in mipi_dsi_dcs_set_tear_scanline() argument
1169 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_TEAR_SCANLINE, payload, in mipi_dsi_dcs_set_tear_scanline()
1179 * mipi_dsi_dcs_set_display_brightness() - sets the brightness value of the
1181 * @dsi: DSI peripheral device
1186 int mipi_dsi_dcs_set_display_brightness(struct mipi_dsi_device *dsi, in mipi_dsi_dcs_set_display_brightness() argument
1192 err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_DISPLAY_BRIGHTNESS, in mipi_dsi_dcs_set_display_brightness()
1202 * mipi_dsi_dcs_get_display_brightness() - gets the current brightness value
1204 * @dsi: DSI peripheral device
1209 int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi, in mipi_dsi_dcs_get_display_brightness() argument
1214 err = mipi_dsi_dcs_read(dsi, MIPI_DCS_GET_DISPLAY_BRIGHTNESS, in mipi_dsi_dcs_get_display_brightness()
1218 err = -ENODATA; in mipi_dsi_dcs_get_display_brightness()
1229 struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); in mipi_dsi_drv_probe()
1230 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_drv_probe() local
1232 return drv->probe(dsi); in mipi_dsi_drv_probe()
1237 struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); in mipi_dsi_drv_remove()
1238 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_drv_remove() local
1240 drv->remove(dsi); in mipi_dsi_drv_remove()
1247 struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); in mipi_dsi_drv_shutdown()
1248 struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev); in mipi_dsi_drv_shutdown() local
1250 drv->shutdown(dsi); in mipi_dsi_drv_shutdown()
1254 * mipi_dsi_driver_register_full() - register a driver for DSI devices
1255 * @drv: DSI driver structure
1263 drv->driver.bus = &mipi_dsi_bus_type; in mipi_dsi_driver_register_full()
1264 drv->driver.owner = owner; in mipi_dsi_driver_register_full()
1266 if (drv->probe) in mipi_dsi_driver_register_full()
1267 drv->driver.probe = mipi_dsi_drv_probe; in mipi_dsi_driver_register_full()
1268 if (drv->remove) in mipi_dsi_driver_register_full()
1269 drv->driver.remove = mipi_dsi_drv_remove; in mipi_dsi_driver_register_full()
1270 if (drv->shutdown) in mipi_dsi_driver_register_full()
1271 drv->driver.shutdown = mipi_dsi_drv_shutdown; in mipi_dsi_driver_register_full()
1273 return driver_register(&drv->driver); in mipi_dsi_driver_register_full()
1278 * mipi_dsi_driver_unregister() - unregister a driver for DSI devices
1279 * @drv: DSI driver structure
1285 driver_unregister(&drv->driver); in mipi_dsi_driver_unregister()
1296 MODULE_DESCRIPTION("MIPI DSI Bus");