media: spi: rk1608: change version number

Change-Id: Id4d80bae2494f8caf32eeac24d375aa476c1c2ff
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
Hu Kejun
2019-04-03 17:36:21 +08:00
committed by Tao Huang
parent de8b82f0ae
commit 0aaf1ad626
3 changed files with 11 additions and 2 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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;
}