Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1297161ybl; Wed, 8 Jan 2020 14:45:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyKcOuZqCups2kprizirwB2jwupl2CHsQu4Dh9QR5z3Sdcvg+aEdaismj9JMivFoSiZabJK X-Received: by 2002:a05:6830:184:: with SMTP id q4mr6075187ota.232.1578523520896; Wed, 08 Jan 2020 14:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578523520; cv=none; d=google.com; s=arc-20160816; b=R9rCKm0ODE4tzona2cRGCNp1YKP5TnPHY/WznLqfR91T53+0X1cUyxFKQfUm/xTzdn 0nm4s1IH/HUG2fbYnBchrZnmJoRxejEvUhAf7D6YTSy8T9ccRZ8CJg1Yp3G4+AcHBblg f42kCAWjhncMcjiS74fKOzB0F9hUdLxgdMOq4QYhi/Li1hcZiv0ZxigNECUUA/awQvqW 47jzY1NRfEImC8RZRTULibCsQg/E1jW7IljgIVgxO+nA9QqBpkZ1oI/rEuW59LyN3dBL rogP5hOrWHqG9w7YaoCUJ54NhApW2qOv9BbRImMUN5sCWnFklUXQ41JHT2oYTxc2HXQd xqnQ== 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; bh=ObownsfWEykoEhhkkKQWYS/Ac9f19kmMtv8BOhUZsBk=; b=rz5VOFK34r1ySN9sSqlLnlNskEAICM6qkZn+CYHWF0v/eQdZ27v0/AA9sXv3MQAtyY B23zpAUrbknVQIKYxyM+9QbRiO/qwmAgvTllpIzj/laBaibu2AZKsOBfqPmSrRKVIYFN +AD2IiXBk8tAobOOuqIYdDZnc2R7yCljdb97551vKdoXMjSb0Rcy/oDT7YGHJQ/JMW6y CU2qHvW+JJKhMsBzHCoS3XtEgOyByTn7xqobjz6mbsAzUAGbvCXpAvnW25Gj/FHVnG+g iYpYWCSJZMUTBPAp4Utfv7OK32Y+jRUbZiiVYMt3smqZcqBuilJnik8RpxpOBFaaLFOH 5fBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si2451595oie.231.2020.01.08.14.45.08; Wed, 08 Jan 2020 14:45:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbgAHWnR (ORCPT + 99 others); Wed, 8 Jan 2020 17:43:17 -0500 Received: from mail.manjaro.org ([176.9.38.148]:60208 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbgAHWnQ (ORCPT ); Wed, 8 Jan 2020 17:43:16 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id 8683336E4DE5; Wed, 8 Jan 2020 23:43:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bqW6UVg2x1jr; Wed, 8 Jan 2020 23:43:13 +0100 (CET) From: Tobias Schramm To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 1/1] drm/rockchip: fix integer type used for storing dp data rate and lane count Date: Wed, 8 Jan 2020 23:39:49 +0100 Message-Id: <20200108223949.355975-2-t.schramm@manjaro.org> In-Reply-To: <20200108223949.355975-1-t.schramm@manjaro.org> References: <20200108223949.355975-1-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 2589c4025f13 ("drm/rockchip: Avoid drm_dp_link helpers") changes the type of variables used to store the display port data rate and number of lanes to u8. However u8 is not sufficient to store the link data rate of the display port. This commit reverts the type of both the number of lanes and the data rate to unsigned int. Signed-off-by: Tobias Schramm --- drivers/gpu/drm/rockchip/cdn-dp-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.h b/drivers/gpu/drm/rockchip/cdn-dp-core.h index 83c4586665b4..806cb0b08982 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.h +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.h @@ -94,8 +94,8 @@ struct cdn_dp_device { struct video_info video_info; struct cdn_dp_port *port[MAX_PHY]; u8 ports; - u8 max_lanes; - u8 max_rate; + unsigned int max_lanes; + unsigned int max_rate; u8 lanes; int active_port; -- 2.24.1