Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932234Ab0KBHUd (ORCPT ); Tue, 2 Nov 2010 03:20:33 -0400 Received: from mognix.dark-green.com ([88.116.226.179]:55382 "EHLO mognix.dark-green.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755576Ab0KBHUY (ORCPT ); Tue, 2 Nov 2010 03:20:24 -0400 MIME-Version: 1.0 Date: Tue, 02 Nov 2010 08:20:23 +0100 From: gimli To: Subject: [PATCH 4/6] MacBookAir3,1(3,2) hid support Message-ID: <799cfececb18800d63df64fc93e2228f@mognix.dark-green.com> User-Agent: RoundCube Webmail/0.2.2 Content-Type: multipart/mixed; boundary="=_d1c19a6603c92e799ca3cf7dcb1ff048" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8949 Lines: 131 --=_d1c19a6603c92e799ca3cf7dcb1ff048 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" This patch add support for the MacBookAir3,1 and MacBookAir3,2 to the hid driver. Signed-off-by: Edgar (gimli) Hucek --=_d1c19a6603c92e799ca3cf7dcb1ff048 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="UTF-8"; name="hid_macbookair.patch"; Content-Disposition: attachment; filename="hid_macbookair.patch"; ZGlmZiAtdU5yIGxpbnV4LTIuNi4zNS9kcml2ZXJzL2hpZC9oaWQtYXBwbGUuYyBsaW51eC0yLjYu MzUtTWFjYm9va0Fpci9kcml2ZXJzL2hpZC9oaWQtYXBwbGUuYwotLS0gbGludXgtMi42LjM1L2Ry aXZlcnMvaGlkL2hpZC1hcHBsZS5jCTIwMTAtMDgtMDIgMDA6MTE6MTQuMDAwMDAwMDAwICswMjAw CisrKyBsaW51eC0yLjYuMzUtTWFjYm9va0Fpci9kcml2ZXJzL2hpZC9oaWQtYXBwbGUuYwkyMDEw LTEwLTI0IDE2OjMzOjIwLjcyMjkxODAwMiArMDIwMApAQCAtN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SSU5H NEFfSklTCTB4MDI0NAogI2RlZmluZSBVU0JfREVWSUNFX0lEX0FQUExFX0FMVV9XSVJFTEVTU18y MDA5X0FOU0kgIDB4MDIzOQogI2RlZmluZSBVU0JfREVWSUNFX0lEX0FQUExFX0FMVV9XSVJFTEVT U18yMDA5X0lTTyAgIDB4MDIzYQogI2RlZmluZSBVU0JfREVWSUNFX0lEX0FQUExFX0FMVV9XSVJF TEVTU18yMDA5X0pJUyAgIDB4MDIzYgo= --=_d1c19a6603c92e799ca3cf7dcb1ff048-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/