Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14534696ybl; Mon, 30 Dec 2019 11:57:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyj/MPuvD8n5kclt9blwG1/QkrSYMa/RFYHab7lTBjprI8vYQN2y+zuI7ICdJLpsqkdyQCk X-Received: by 2002:a9d:74c8:: with SMTP id a8mr72598313otl.57.1577735859117; Mon, 30 Dec 2019 11:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577735859; cv=none; d=google.com; s=arc-20160816; b=PyH3+z7PoCU/DI27urb/tXKdp5CBciPj+nsn8k9+CCv2fdZdAiZEGb090s8vAoDsaV 77heGXPeKR13FG1zyIFk55OPHGviK1BsA593ZVqQTA2vBgRDvF08jn1vHL9o4Y1v5tBt y58UE/p1zR0iWz9XPXHJTuwPJfSQcfm9UVtBHkh+3KnvSfK+1RnU4L3OGQkZJBH2dSPh prMYNxoQU+72WPZ/Ppre5lM3hRNMpMajr460kxUSr3SZplgGm2vgy/I5q+SE0ZTIibRz 4Ej5a8GM7rHazaxmJ39A2vkAKHV5VGYwagWxiRpfBr3/FHzoSfbO9F19K5fSunjgo3IS kMeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=gO16AQCkNPb14dsCdpkNOICcLP4HpRwvIVTrCALZZko=; b=JKp8/U0SfESrOQsg2fH132iIBsSFpZIh8PJk/JKSyOJ5JHtfZ94/NWzGmZmxVmVJFf IS9aTFob6UbyyXhTTfHEI9nrb0eo+vrzazTr9MIn4LZs7htQCLqFMZ+8wMYpIoOcr0vE CLNUmZ+BHHFKiSTeke8+oT0dUwMHX4ol8OAGa1JLJBD2uJjt3SfEL+NnZ03tu0S9gbdm HGvpCQuZfW8upaiBxWV58bs7ibn8AltAY+q2ILJMX20AuRgDe0CnUdEw8SaQFZ16zwAe 9ejCpjyX5n5B9efEYyq5Tze5Z+wq5Iox1qmdufqc4RdClhz7Ot+uqZDVD1kfVebR/kwu uK9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fzz92Rr5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si16780723oiw.55.2019.12.30.11.57.26; Mon, 30 Dec 2019 11:57:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fzz92Rr5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727699AbfL3T4Q (ORCPT + 99 others); Mon, 30 Dec 2019 14:56:16 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33258 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbfL3T4Q (ORCPT ); Mon, 30 Dec 2019 14:56:16 -0500 Received: by mail-ed1-f67.google.com with SMTP id r21so33700843edq.0 for ; Mon, 30 Dec 2019 11:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gO16AQCkNPb14dsCdpkNOICcLP4HpRwvIVTrCALZZko=; b=fzz92Rr5ad/tw0dAyXatXMplVhuQTUMwBoHdS2zFzvNq3breMRsKrqsAxDoCTQvjpj WB5JiebaJGU/chwFRmjzZtX66Re6Rm3vCKvnP2CwjjzBa3yQBa7X3ve2scCY/dC9ljry VJoXuBqYtHvYc2PtO3mdZDZcuEGoGUQigwd0u1XguvL8OcAP2WYRTjUbUeGFMwe3gmgh rOMNHL58k4ZYkEcc7vFiYn3vjtOcnLzwJ6yLVpWjnTGmvagFT0WvPI7Gc8DMp+R3rMms g5+qwkh3pwPpRsSJpRA4BQPwL2prIzuXHCjXa6IH9NViXz6mr2cZsL8ckh8YsSL4Hq2z DdlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gO16AQCkNPb14dsCdpkNOICcLP4HpRwvIVTrCALZZko=; b=cfEMkUTKQFMrXVhTQnu4ByvTfdksgiVtF0E9aQx+MzlDEHJQDlEoVb2GjnCf1JjbQN 9Yx3XUT7ekBp+8smyV2uybuy0M0MwYi8liAAxskqNyn14TdVr7AxaxpXGJixiGtOZHKO PQf4NwSJvT594vQqrJhO1HIrAEvnjgsFXfNcmnPhJw5uE17DczKcupg2specq/KMrg6O BjqTQViTDZkAEnQItTabfZ80i8qPSAjAuvX7c/97zmh9K/B4IXtT6Reb7AZlj7EetJK0 9a/3elifsw4lrIzkh+VTyozni/inQ/gAoNK3CtimMKBfldxToYnOHjMYmXWAsIcW074X ZTQA== X-Gm-Message-State: APjAAAVD4XqPn9/BXMhJT23rNCQcl6Hc4BbwTMp6CnKSTMLZZRI1p1nH jsD+ApIAQbPB/rkS/qKaGak= X-Received: by 2002:a05:6402:3184:: with SMTP id di4mr73253173edb.59.1577735774170; Mon, 30 Dec 2019 11:56:14 -0800 (PST) Received: from localhost.localdomain ([197.254.95.38]) by smtp.googlemail.com with ESMTPSA id ba29sm5446185edb.47.2019.12.30.11.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 11:56:13 -0800 (PST) From: Wambui Karuga To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/panel: declare variable as __be16 Date: Mon, 30 Dec 2019 22:56:09 +0300 Message-Id: <20191230195609.12386-1-wambui.karugax@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Declare the temp variable as __be16 to address the following sparse warning: drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: warning: incorrect type in initializer (different base types) drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: expected unsigned short [unsigned] [usertype] temp drivers/gpu/drm/panel/panel-lg-lg4573.c:45:20: got restricted __be16 [usertype] Signed-off-by: Wambui Karuga --- drivers/gpu/drm/panel/panel-lg-lg4573.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-lg-lg4573.c b/drivers/gpu/drm/panel/panel-lg-lg4573.c index 20235ff0bbc4..b262b53dbd85 100644 --- a/drivers/gpu/drm/panel/panel-lg-lg4573.c +++ b/drivers/gpu/drm/panel/panel-lg-lg4573.c @@ -42,7 +42,7 @@ static int lg4573_spi_write_u16(struct lg4573 *ctx, u16 data) struct spi_transfer xfer = { .len = 2, }; - u16 temp = cpu_to_be16(data); + __be16 temp = cpu_to_be16(data); struct spi_message msg; dev_dbg(ctx->panel.dev, "writing data: %x\n", data); -- 2.17.1