Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1662867pxp; Sun, 6 Mar 2022 22:38:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxYHPQ1rPUziZsdWH3jsIBS3Wwa/d+mAE5AaUEZot4U0Tl4xY7UDsSYiQ4ig+R6/6TQ2UV X-Received: by 2002:a17:902:7fc5:b0:151:863e:44ee with SMTP id t5-20020a1709027fc500b00151863e44eemr10794558plb.163.1646635139429; Sun, 06 Mar 2022 22:38:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646635139; cv=pass; d=google.com; s=arc-20160816; b=qRf6/NSvfvK5BZHTSyI/CF+9cUglrgWdDkwUWPf5S+MnG7nOdVCnQxY+7MUWmjwKLQ FE+8ESHFW/IzOip7C88ynRYXv70JaEN85+SFM4SGt41fwe5s1918zRmkjwmoqK/JvvLH JRfAHwIKZNa8f7WQcByz0WuTy4SSW/Z710N14sHr8Yx6CCZXMbY61bDCFNI8PEsMu+Ck edmUBDnkt8DbZKXjSCFex51bmCOdIf+4C/lT0u+NjsqHIj8LKRYELEedNhYYJ/SVgzgt dl+yQ46zS+UgTXpiXckobkjnIDCx8+T+vm4KmTgmCE+3hJiPQevl7TSb2YO8RYYDqqJL VEJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=xG+TyjcKH0Px6rCxR7Pw6EqVh3SV5WA+74Grk/KAYt8=; b=lYpDIkPVile2yBQLOs4VZ/9kQPZVVkQdkUxjxFg8e1s9eff+jS8VbtagKnEiS+WEfK ZLS+jg/8zsgdDtvhAGyw//Z3/Tb376tcpHTO8d3mPPzmv8kThlaGgj2ZHizeoCfSjBTr 0YzKI3WotCniJU0xbU6PpCf301QOsPd7hGCW4ZJ95VO9jv9XWvKfGoENxREBRTCHCyDH FJeN1XGCBRKZHwOcm6Mke35u7+ODCsI/6/3a/zUzDgKr0NWrXtQbuRdV2DdG/Ey/+Pwb nH0MQVAYPDZfVK1kd6KyqHO6gmyPZcDPDGFqBSWcxFSvpfXcfFjGf/e+1cwUiY8anJef YdVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=NnXR6znR; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a170903240300b0014d13a87534si12015076plo.515.2022.03.06.22.38.43; Sun, 06 Mar 2022 22:38:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=NnXR6znR; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232572AbiCFECC (ORCPT + 99 others); Sat, 5 Mar 2022 23:02:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiCFECB (ORCPT ); Sat, 5 Mar 2022 23:02:01 -0500 Received: from IND01-MA1-obe.outbound.protection.outlook.com (mail-ma1ind01olkn0173.outbound.protection.outlook.com [104.47.100.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD72022B18; Sat, 5 Mar 2022 20:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HgxiaWCG+I4aZnAtPPfPU475zHpV6t9yZ0RTNQlcx9R6LisNXNPzAxDjGi+rCHk71HZu0Nz1vq1SfHRypjBaLq37NtZC4Orrgt+1IZvFbpt2paIz3KQ7w92dvGF/CX5QeZPocJRSjLEiFIfdI6nsBRI1WVI0m8ICA6MB5E9NdFPQ0Bv5Fq6B93Em+2wh5WiFVwQw5livaFnXrIDWHLXR1TaFJWjK0hjd4o9xyQgPRrqe3WsUZhMiRbdfF2LnrAJjYPukqvWyA3f8db2a/qjmmjtkuDuupIEdofheOPRX9Jz5lbKbsPdJ5/u4YMvNAyuIww0xp9/nxGyPOCV20UyjgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xG+TyjcKH0Px6rCxR7Pw6EqVh3SV5WA+74Grk/KAYt8=; b=IrpeIlBI8743SEFeuAbFlv28dHXfj7NI2cgMO0LhraqVb1N9ot1VIOWHesB+UfrIDgQNW54Cmy0JfGMhb134bwO/KKPjaZ5wd7lyTKoYTvabVhYqlAM3DIAqcIPTT5v+ksjBS4EC6ohZCQqKnyHB8d0eC/sgqDZmNi32x/Ts+y0mcwr2LB6qdh1f1lSK9N3f8THvmTytZ+verXGTgSUCAjd6DDQVM1WQE9vZfhMIH+sorg7klN0rrBcmAN5WVDRzalg5T9NjPx/V4szenWhGIrs8z4fIVYVVHu3ZAWxhFTE99QSI7pOh0y3+EqQvLzutpumepFHAWpSwZS1gvJ896w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xG+TyjcKH0Px6rCxR7Pw6EqVh3SV5WA+74Grk/KAYt8=; b=NnXR6znRY4QtqNWas6awm+PNjUO5mshfCQs475e+Jl1fKYFzrdAJWUsO0/MrWKhT0mYcWVdZ8ZyzS9fsunESlYC1i5kcSSyuUHitRZdGCaTnRMQiT80ghHAWkfzs95km0gCg3aaUs5JJDTc117y/Waz1l3hwvqDCQI053eBdGkB5mZuFfHlGeduuB/M311MrTmIU97WgOn2rnZlxLYZS1pDhz6okNvWu+cL+UBQHwB0vDbe5wy6DrEqeB5yViWgBVCgGmIft2JXJe7LgKN0++HTvjmBehsFqQ8sJC+kMxmXCmkOvQeZZL6Zg+fWg8yuqou5wvHCmgQQboq3t0J5zBA== Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:1b::13) by PN0PR01MB5969.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:65::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Sun, 6 Mar 2022 04:01:04 +0000 Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::3465:cd70:421e:78fc]) by PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::3465:cd70:421e:78fc%6]) with mapi id 15.20.5038.026; Sun, 6 Mar 2022 04:01:04 +0000 From: Aditya Garg To: "jkosina@suse.cz" , Jiri Kosina , "alexhenrie24@gmail.com" , "benjamin.tissoires@redhat.com" CC: "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "paul@mrarm.io" , "admin@kodeit.net" , Orlando Chamberlain Subject: [PATCH] HID: apple: Bring apple_key_translation structures together. Thread-Topic: [PATCH] HID: apple: Bring apple_key_translation structures together. Thread-Index: AQHYMQ7NtWWr6sDn30KTrEKF2M4JdQ== Date: Sun, 6 Mar 2022 04:01:04 +0000 Message-ID: <4111ACD7-5928-4D6B-9C0F-897BA057A891@live.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [eTrh+xa3ZKfSaNyUQk7fxpbboWEJXv0o] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 86aac38f-0e69-47a8-10b5-08d9ff25ef86 x-ms-traffictypediagnostic: PN0PR01MB5969:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5RzIsz7mOSmtYt7xqFQD0CVCICbHepUlAC8WGHSSsFTDYj+Ew2qHQFanw06OAmWa9KU72qpK0fotFoLIp5qtLYjoIp+pyL1ml44Sw+S9hTUKYBncUu0dy40DUOWVG3RrGoLTDuQcBBsfp/uL4mOlisk5vYfenFiK+N1bmhEox8QSiaUn6FJ57SJjH21S+xnOzJ7vkWDIknGC7zgNu/aygrwaO8EDumJgHxWwIz+1O8RkR5541aPf7KZQNC8ZNHTex3M+jpGiO2ibQ7WxBDxndSBYGI3oKDLUj7cu/8BuVP9sdnnbLs86XG34pKrEU5XdBZ5FmnQs3f9lJxfs6uk+dxcVf4ulfKAFVutoVSU2w5kaNwngQJIl6MlbmfAMUQGsBmOEADz+jfl0k249k0VBfFJQj/VVYJXpyFxgaazibESC0X7Xb/ttcvz+7jdFJc79nwc4HXY7ccF0CTCbFYsfs3L5RQBzO7lyv0cAX+IczPFwgJp3XDTAZOgbarv7kqIEBU8xS/+7qZdG0EpAnQ8cBfducKjP4tO3mkA54hEHXU/BH+h0VovDhIEOPoShcNPwVD/qAQj8xDSMd4H6F7lz1A== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7eL7tfm7c/OKAVBXKIlhtv2756GE3c9ErPhS0kmfFSyk/l0PJtv2OvXkGPjk?= =?us-ascii?Q?dSLiY3jCOSCP6vy/1SmqFK51yr9/7aU6zgMt0WRVYZR5kR8z2r3MeOvZ2Yy3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3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <2C0A04701BA5C04C82646AE2B4C16C9B@INDPRD01.PROD.OUTLOOK.COM> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-42ed3.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 86aac38f-0e69-47a8-10b5-08d9ff25ef86 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2022 04:01:04.6268 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN0PR01MB5969 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aditya Garg This patch relocates the backlight structures so that key translation structures come together. There is no functional change in this patch. Signed-off-by: Aditya Garg --- drivers/hid/hid-apple.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 0cf35caee..a2769c842 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -85,6 +85,19 @@ struct apple_key_translation { u8 flags; }; =20 +struct apple_backlight_config_report { + u8 report_id; + u8 version; + u16 backlight_off, backlight_on_min, backlight_on_max; +}; + +struct apple_backlight_set_report { + u8 report_id; + u8 version; + u16 backlight; + u16 rate; +}; + static const struct apple_key_translation magic_keyboard_alu_fn_keys[] =3D= { { KEY_BACKSPACE, KEY_DELETE }, { KEY_ENTER, KEY_INSERT }, @@ -126,20 +139,6 @@ static const struct apple_key_translation magic_keyboa= rd_2015_fn_keys[] =3D { { } }; =20 -struct apple_backlight_config_report { - u8 report_id; - u8 version; - u16 backlight_off, backlight_on_min, backlight_on_max; -}; - -struct apple_backlight_set_report { - u8 report_id; - u8 version; - u16 backlight; - u16 rate; -}; - - static const struct apple_key_translation apple2021_fn_keys[] =3D { { KEY_BACKSPACE, KEY_DELETE }, { KEY_ENTER, KEY_INSERT }, --=20 2.25.1