From patchwork Thu Jan 16 14:54:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11337215 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0044B921 for ; Thu, 16 Jan 2020 14:54:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D2528207E0 for ; Thu, 16 Jan 2020 14:54:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="uN+X0R9D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D2528207E0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 131826ED71; Thu, 16 Jan 2020 14:54:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 760B36ED71 for ; Thu, 16 Jan 2020 14:54:46 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200116145445euoutp02fb8520c4f0c69a6e2cd2164e086ca3f9~qZb3Eju_H0280802808euoutp02_ for ; Thu, 16 Jan 2020 14:54:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200116145445euoutp02fb8520c4f0c69a6e2cd2164e086ca3f9~qZb3Eju_H0280802808euoutp02_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579186485; bh=b65qnNpZPszXG+jwsFpQRilWQfE42OoelAKKff3CP5U=; h=From:Subject:To:Cc:Date:References:From; b=uN+X0R9DwJOTpEDHkYnjcPt7yQ9M8jqJz8rypj+G2eNGYCuAlr1semr2kznBVigYL v4xTaosFY8fbZeNT4i3/qCXsukjkeBE0qID3NRVjSsj4NQvTAeOHsKT4FG/Vr0Hk5a YT3pVMz747X2Jx/WdY+JRczcvOpWNK6cohMRfnSs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200116145444eucas1p22d4769c433e37f048f6100b6d032c9b5~qZb246Q5M1744817448eucas1p2B; Thu, 16 Jan 2020 14:54:44 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D9.84.60698.439702E5; Thu, 16 Jan 2020 14:54:44 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200116145444eucas1p1b62a023ad7ea3722193c932761eb8493~qZb2VS-RQ0962409624eucas1p1S; Thu, 16 Jan 2020 14:54:44 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200116145444eusmtrp1a6015b8d3fef1a854e9729889efd87c8~qZb2RoV471332413324eusmtrp1N; Thu, 16 Jan 2020 14:54:44 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-51-5e207934bdc2 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A2.66.07950.439702E5; Thu, 16 Jan 2020 14:54:44 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200116145443eusmtip2609623863bfb9e2ba72cc8ce9cafe547~qZb1tBdpz3165131651eusmtip2J; Thu, 16 Jan 2020 14:54:43 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] video: fbdev: wm8505fb: fix sparse warnings about using incorrect types To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: <411db705-a098-27e6-8f52-acfea2735738@samsung.com> Date: Thu, 16 Jan 2020 15:54:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKKsWRmVeSWpSXmKPExsWy7djPc7omlQpxBg2LdS1urTvHarFxxnpW iytf37NZnOj7wGpxedccNgdWj/vdx5k8+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK2Pyqf3M BZvZKq787WVsYNzB2sXIwSEhYCJx6G9CFyMXh5DACkaJvtXH2SGcL4wS8948Ze5i5ARyPjNK PHrGDWKDNHw50MgKUbScUWLx32WMEM5bRokrd5YwglSxCVhJTGxfBWYLC8RJfNr0CWySiECC xIrpM8DizALxEtuaj4LZvAJ2EjtenwGzWQRUJV4vu84GYosKREh8enCYFaJGUOLkzCcsEL3i EreezGeCsOUltr+dwwxyhITAbzaJaR9esEKc6iKxY/lMJghbWOLV8S3sELaMxOnJPSwQDesY Jf52vIDq3s4osXzyPzaIKmuJO+d+sYFCiVlAU2L9Ln2IsKPEtWPP2CGBxydx460gxBF8EpO2 TWeGCPNKdLQJQVSrSWxYtoENZm3XzpVQJR4S9+eYTWBUnIXks1lIPpuF5LNZCCcsYGRZxSie Wlqcm55abJyXWq5XnJhbXJqXrpecn7uJEZhYTv87/nUH474/SYcYBTgYlXh4P4QoxAmxJpYV V+YeYpTgYFYS4T05QzZOiDcl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iYqblyuxFGckGmoxFxUnAgBOhZfsowIAAA== X-CMS-MailID: 20200116145444eucas1p1b62a023ad7ea3722193c932761eb8493 X-Msg-Generator: CA X-RootMTR: 20200116145444eucas1p1b62a023ad7ea3722193c932761eb8493 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200116145444eucas1p1b62a023ad7ea3722193c932761eb8493 References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use ->screen_buffer instead of ->screen_base to fix sparse warnings. [ Please see commit 17a7b0b4d974 ("fb.h: Provide alternate screen_base pointer") for details. ] Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Sam Ravnborg --- drivers/video/fbdev/wm8505fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/drivers/video/fbdev/wm8505fb.c =================================================================== --- a/drivers/video/fbdev/wm8505fb.c +++ b/drivers/video/fbdev/wm8505fb.c @@ -339,7 +339,7 @@ static int wm8505fb_probe(struct platfor fbi->fb.fix.smem_start = fb_mem_phys; fbi->fb.fix.smem_len = fb_mem_len; - fbi->fb.screen_base = fb_mem_virt; + fbi->fb.screen_buffer = fb_mem_virt; fbi->fb.screen_size = fb_mem_len; fbi->contrast = 0x10;