From 863a24bb5da2268d7705ec57fb2d16dfafa2e02c Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Tue, 5 Jun 2018 12:31:25 +0300 Subject: sys/linux: id field fix in v4l2_event_subscription The id field in the v4l2_event_subscription structure currently described as: id len[type, int32]. But all the documentation states is: "id - ID of the event source. If there is no ID associated with the event source, then set this to 0. Whether or not an event needs an ID depends on the event type." So, the documentation clearly states that: 1. id - is the source of an event 2. type - is the type of an event 3. for some types of events there is no source and id can be 0 According to this 'id int32' is more accurate description of the field. --- sys/linux/gen/arm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/linux/gen/arm.go') diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index a6f600662..cb43c9465 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -14230,7 +14230,7 @@ var structDescs_arm = []*KeyedStruct{ }}}, {Key: StructKey{Name: "v4l2_event_subscription"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "v4l2_event_subscription", TypeSize: 32}, Fields: []Type{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "v4l2_event_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 134217728, 134221824, 134221825, 134221826, 134221827, 134221828, 134221829, 134221830, 134221831, 134221832, 134221833, 134221834}}, - &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "id", TypeSize: 4}}, Buf: "type"}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "id", TypeSize: 4}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "v4l2_event_subscription_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reserved", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5}, }}}, @@ -33526,4 +33526,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "b8c5273058572a80fa1677921b69b0b3191947a5" +const revision_arm = "ab6166ffafd1b575c22c14ae79cd813f97f13bf6" -- cgit mrf-deployment