Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1088051ybt; Wed, 1 Jul 2020 18:35:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPFcsg4Qyrfv7IrLIOeWb4L2ePBzrCFKWFt0FLMK++9dc4mJEwtfkxvt7549lV0ALMycfv X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr31500188edb.144.1593653720572; Wed, 01 Jul 2020 18:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593653720; cv=none; d=google.com; s=arc-20160816; b=wHlX/EQgsixDUVqXYahhrJqN0aQwKDH4FfeKKQ0G43vRvAWHK0cMZg7YE40attejaU g1PyVqs0ziiizTylrQR5YE4he/Nj8lIWFkmg7B7FH2eINyGoIiqB5ubspLwYXmJIeopN mi4lqa+EoH82chlrbyf6RtxdB0HDtdLZOdrrpUADF5836e9AXzFfkhR5A9dDUIuh5Gdy P8ovOAlgT3tHObStP4L237aufpkLCtQDIVpTtFQRYqMZI4py4P1ojXaSjJA6Ip+CD/d9 J0kn6bnHzO9C/fKbaaxx195pLa+aGpw8YpLj7JcrWkuhInMvOg6vZPJ7QDrOFOYF7eV8 B3hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z8LBMnkSkdi1OZzueDid8HfAYv8GvwuAid5ZqiyRRz0=; b=wtv7rXuCxHu1xzJWJ7usHEFwMdjl1bUouauOjOGcfTYGywo7cYnpgbj0WJZRNBRvg4 TMG+m/XHnwhsfHlgb5iSr0nhXW7/1K2qJVLvD5g9y4Vzh2iTa+faqQHD7OIFT4o0HIbu NOi8POi9edWXZ1lRP7z5SVfcpuXhi6kSU/CU5oaFkVLSWXHIDgjodgsiom+FMnJfJ5AS vGtlo5aMyZfQrK3vZuMQ04gsLtPRXJ3ZKCwFgu8ChxMpWF2Ep/QAVdL3XxOmDzsFnmEH fyNCimGFaNpDdvFTaKBlqCoaBSXdnIJix0NF0seaITBXDRXlWPT/+YzGJZBYeb9yyKdd DaCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SFE+0cW5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si5221392ejr.238.2020.07.01.18.34.57; Wed, 01 Jul 2020 18:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SFE+0cW5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728692AbgGBBez (ORCPT + 99 others); Wed, 1 Jul 2020 21:34:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:54226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728410AbgGBBXh (ORCPT ); Wed, 1 Jul 2020 21:23:37 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE7212088E; Thu, 2 Jul 2020 01:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593653017; bh=YTaFIXKUgmcdP1e9IE1EuXcT+y6FsRB2iZKzwevw40I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SFE+0cW5RBNlPt8/ttmNZhznXFnqv/ynMlpUqZTnr1AglOFUZaDkKpdVSiBjjV0CU JhHtnSUuYOl2B31rWtemc9tBoCcbQ6nUo98GLFZJHXShbidS0tlaCeh6GzSsQtsF5y D3gWAVZDG72s8kLjUSamgGYBT5ZhQ+FX0KH6m8Tw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Emil Velikov , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.7 34/53] drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003 Date: Wed, 1 Jul 2020 21:21:43 -0400 Message-Id: <20200702012202.2700645-34-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702012202.2700645-1-sashal@kernel.org> References: <20200702012202.2700645-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit a05caf9e62a85d12da27e814ac13195f4683f21c ] The Acer S1003 has proper DMI strings for sys-vendor and product-name, so we do not need to match by BIOS-date. This means that the Acer S1003 can use the generic lcd800x1280_rightside_up drm_dmi_panel_orientation_data struct which is also used by other quirks. Reviewed-by: Emil Velikov Signed-off-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20200531093025.28050-2-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index d11d83703931e..d00ea384dcbfe 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -30,12 +30,6 @@ struct drm_dmi_panel_orientation_data { int orientation; }; -static const struct drm_dmi_panel_orientation_data acer_s1003 = { - .width = 800, - .height = 1280, - .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, -}; - static const struct drm_dmi_panel_orientation_data asus_t100ha = { .width = 800, .height = 1280, @@ -114,7 +108,7 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"), DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"), }, - .driver_data = (void *)&acer_s1003, + .driver_data = (void *)&lcd800x1280_rightside_up, }, { /* Asus T100HA */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), -- 2.25.1