firmware_drv: should not use AMSTREAM_MAJOR [1/1]
authorHanjie Lin <hanjie.lin@amlogic.com>
Mon, 10 Jun 2019 08:38:00 +0000 (16:38 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 11 Jun 2019 11:04:06 +0000 (04:04 -0700)
PD#SWPL-9538

Problem:
firmware_drv and amstream shouldn't use the same AMSTREAM_MAJOR

Solution:
add a dedicated FIRMWARE_MAJOR for firmware_drv

Verify:
ac200

Change-Id: I3f041c220a9d0ea3329296dc81618dd85e8d466c
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
include/linux/amlogic/major.h

index dbdf495..d385f88 100644 (file)
@@ -23,6 +23,7 @@
 #define AML_BASE               CHRDEV_MAJOR_HASH_SIZE
 #define AMSTREAM_MAJOR         (0+(AML_BASE))
 #define AUDIODSP_MAJOR         (2+(AML_BASE))
+#define FIRMWARE_MAJOR         (3+(AML_BASE))
 #define AMVIDEO_MAJOR          (9+(AML_BASE))
 #define AMAUDIO_MAJOR          (11+(AML_BASE))
 #define AMVIDEO2_MAJOR         (12+(AML_BASE))