mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
media: spi: rk1608: change version number
Change-Id: Id4d80bae2494f8caf32eeac24d375aa476c1c2ff Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
@@ -1559,6 +1559,11 @@ static int rk1608_probe(struct spi_device *spi)
|
||||
struct v4l2_subdev *sd;
|
||||
int ret = 0;
|
||||
|
||||
dev_info(&spi->dev, "driver version: %02x.%02x.%02x",
|
||||
RK1608_VERSION >> 16,
|
||||
(RK1608_VERSION & 0xff00) >> 8,
|
||||
RK1608_VERSION & 0x00ff);
|
||||
|
||||
rk1608 = devm_kzalloc(&spi->dev, sizeof(*rk1608), GFP_KERNEL);
|
||||
if (!rk1608)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -11,9 +11,10 @@
|
||||
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/version.h>
|
||||
#include "rk1608_dphy.h"
|
||||
|
||||
#define RK1608_VERSION "v1.1"
|
||||
#define RK1608_VERSION KERNEL_VERSION(0, 0x01, 0x01)
|
||||
|
||||
#define RK1608_OP_TRY_MAX 3
|
||||
#define RK1608_OP_TRY_DELAY 10
|
||||
|
||||
@@ -622,7 +622,10 @@ static int do_cmd_set_dsp_log_level(struct rk1608_state *pdata,
|
||||
static int do_cmd_version(struct rk1608_state *pdata,
|
||||
const struct auto_args *args)
|
||||
{
|
||||
dev_info(pdata->dev, "driver version: %s\n", RK1608_VERSION);
|
||||
dev_info(pdata->dev, "driver version: v%02x.%02x.%02x\n",
|
||||
RK1608_VERSION >> 16,
|
||||
(RK1608_VERSION & 0xff00) >> 8,
|
||||
RK1608_VERSION & 0x00ff);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user