mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Revert "drm/mipi-dsi: use correct return type for the DSC functions"
This reverts commit 26f73934ee which is
commit de1c705c50326acaceaf1f02bc5bf6f267c572bd upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: Ib7f794ccd2b16db0b8958640ad7bd8f4e5c7296a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -640,7 +640,7 @@ EXPORT_SYMBOL(mipi_dsi_set_maximum_return_packet_size);
|
|||||||
*
|
*
|
||||||
* Return: 0 on success or a negative error code on failure.
|
* Return: 0 on success or a negative error code on failure.
|
||||||
*/
|
*/
|
||||||
int mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable)
|
ssize_t mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable)
|
||||||
{
|
{
|
||||||
/* Note: Needs updating for non-default PPS or algorithm */
|
/* Note: Needs updating for non-default PPS or algorithm */
|
||||||
u8 tx[2] = { enable << 0, 0 };
|
u8 tx[2] = { enable << 0, 0 };
|
||||||
@@ -665,8 +665,8 @@ EXPORT_SYMBOL(mipi_dsi_compression_mode);
|
|||||||
*
|
*
|
||||||
* Return: 0 on success or a negative error code on failure.
|
* Return: 0 on success or a negative error code on failure.
|
||||||
*/
|
*/
|
||||||
int mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi,
|
ssize_t mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi,
|
||||||
const struct drm_dsc_picture_parameter_set *pps)
|
const struct drm_dsc_picture_parameter_set *pps)
|
||||||
{
|
{
|
||||||
struct mipi_dsi_msg msg = {
|
struct mipi_dsi_msg msg = {
|
||||||
.channel = dsi->channel,
|
.channel = dsi->channel,
|
||||||
|
|||||||
@@ -242,9 +242,9 @@ int mipi_dsi_shutdown_peripheral(struct mipi_dsi_device *dsi);
|
|||||||
int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi);
|
int mipi_dsi_turn_on_peripheral(struct mipi_dsi_device *dsi);
|
||||||
int mipi_dsi_set_maximum_return_packet_size(struct mipi_dsi_device *dsi,
|
int mipi_dsi_set_maximum_return_packet_size(struct mipi_dsi_device *dsi,
|
||||||
u16 value);
|
u16 value);
|
||||||
int mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable);
|
ssize_t mipi_dsi_compression_mode(struct mipi_dsi_device *dsi, bool enable);
|
||||||
int mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi,
|
ssize_t mipi_dsi_picture_parameter_set(struct mipi_dsi_device *dsi,
|
||||||
const struct drm_dsc_picture_parameter_set *pps);
|
const struct drm_dsc_picture_parameter_set *pps);
|
||||||
|
|
||||||
ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload,
|
ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload,
|
||||||
size_t size);
|
size_t size);
|
||||||
|
|||||||
Reference in New Issue
Block a user