mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
media: rockchip: isp1: add version number
Change-Id: I4b86a96a2242c97f56ff3e053dafa73ae234184d Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
#include "regs.h"
|
||||
#include "rkisp1.h"
|
||||
#include "common.h"
|
||||
#include "version.h"
|
||||
|
||||
struct isp_match_data {
|
||||
const char * const *clks;
|
||||
@@ -809,6 +810,11 @@ static int rkisp1_plat_probe(struct platform_device *pdev)
|
||||
struct resource *res;
|
||||
int i, ret, irq;
|
||||
|
||||
dev_info(dev, "rkisp1 driver version: v%x.%x.%x\n",
|
||||
RKISP1_DRIVER_VERSION >> 16,
|
||||
(RKISP1_DRIVER_VERSION & 0xff00) >> 8,
|
||||
RKISP1_DRIVER_VERSION & 0x00ff);
|
||||
|
||||
match = of_match_node(rkisp1_plat_of_match, node);
|
||||
isp_dev = devm_kzalloc(dev, sizeof(*isp_dev), GFP_KERNEL);
|
||||
if (!isp_dev)
|
||||
|
||||
18
drivers/media/platform/rockchip/isp1/version.h
Normal file
18
drivers/media/platform/rockchip/isp1/version.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/* Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd. */
|
||||
|
||||
#ifndef _RKISP1_VERSION_H
|
||||
#define _RKISP1_VERSION_H
|
||||
#include <linux/version.h>
|
||||
|
||||
/*
|
||||
*RKISP1 DRIVER VERSION NOTE
|
||||
*
|
||||
*v0.1.0:
|
||||
*1. First version;
|
||||
*
|
||||
*/
|
||||
|
||||
#define RKISP1_DRIVER_VERSION KERNEL_VERSION(0, 1, 0x0)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user