Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp45764pxb; Thu, 12 Aug 2021 10:24:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy90N/7YOSE3GZqEYLAVUm2RO+1CxhzK3Y795woAmV9lpA/vqvXcGAfl6OAwJGEeJbEnUpA X-Received: by 2002:a17:906:3a02:: with SMTP id z2mr4808345eje.1.1628789095374; Thu, 12 Aug 2021 10:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628789095; cv=none; d=google.com; s=arc-20160816; b=k2hFLzFg068VTxfSw3X23b7XzchAh+BfQgtlEuF0GIrGHA9kQMaE1ICmaTCQEgPTcz gXgP8x6Mj8F4NX184rZ7/8tr/tsnj+OnV+K39/0Jiglr9oao7CQQRE14Kcc46wFOcury tMbfe6uldK0D2OgYgQrhJlXqL3wjt6K2Jpydle7hwPWvw42rMrsD3xz6eMiOyNcgHuCR ZFQxbDv50W8HsX88klTymM15xaLxQ4+QAqUABq9y3BwOkEN1LKTluKj+W+ZdvJ79f0me I2QLn9KE2kMyefrjYdGDAKkJwhySI9y67XD2ePkq89AdqAq/63/+lDjTxQ+NDgxamE4H qATw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=LFQ86vimAxUMG3/cIzjMvYcsCh5e51ZhnRhFN8eLlhk=; b=S+0soQ8B3PQ+DuNBmBTii/6+h6FzDTpzrx8XfzGz08ocacPDq8yx6uaE6bASGlbl5L nUFSHxEcDjC7Ko1soDG3EMl27BTuGDoAyOAwU+m5t6qh6ZiRCfC6fsbNq/NY594sD5a6 U+Ve4Ac2K+NdloukE4n8k+KYxG0Xg0/uctA0ocOnjzMk4kxStFj9Ufh/V/mQLOvK+GrS nkbVZZm3wJEHwxPZ6N+hM1mo558FIGQbEF7O+s7ryMzik0aB8zdzPiTWOicqGrh74ret g59OpzKr0zMTWs35r0R2nwf5dmRQ0/YKxFTDjzpIJPe9QJqYwpBW5GFsyDJ/IxSNfs2k +Y3w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si2835511edd.463.2021.08.12.10.24.29; Thu, 12 Aug 2021 10:24:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236282AbhHLOEL (ORCPT + 99 others); Thu, 12 Aug 2021 10:04:11 -0400 Received: from mx21.baidu.com ([220.181.3.85]:50538 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235893AbhHLOEK (ORCPT ); Thu, 12 Aug 2021 10:04:10 -0400 Received: from BC-Mail-Ex03.internal.baidu.com (unknown [172.31.51.43]) by Forcepoint Email with ESMTPS id 3682D7A95E85EEDD6734; Thu, 12 Aug 2021 22:03:40 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex03.internal.baidu.com (172.31.51.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Thu, 12 Aug 2021 22:03:40 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 12 Aug 2021 22:03:39 +0800 From: Cai Huoqing To: CC: , , Subject: [PATCH] video: fbdev: au1200fb: Make use of dma_mmap_coherent() Date: Thu, 12 Aug 2021 22:03:32 +0800 Message-ID: <20210812140332.506-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-MAIL-EX04.internal.baidu.com (10.127.64.14) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org replace dma_mmap_attrs() with dma_mmap_coherent() kindly. BTW, fix indentation. Signed-off-by: Cai Huoqing --- drivers/video/fbdev/au1200fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/au1200fb.c b/drivers/video/fbdev/au1200fb.c index c00e01a17368..81c315454428 100644 --- a/drivers/video/fbdev/au1200fb.c +++ b/drivers/video/fbdev/au1200fb.c @@ -1233,8 +1233,8 @@ static int au1200fb_fb_mmap(struct fb_info *info, struct vm_area_struct *vma) { struct au1200fb_device *fbdev = info->par; - return dma_mmap_attrs(fbdev->dev, vma, fbdev->fb_mem, fbdev->fb_phys, - fbdev->fb_len, 0); + return dma_mmap_coherent(fbdev->dev, vma, + fbdev->fb_mem, fbdev->fb_phys, fbdev->fb_len); } static void set_global(u_int cmd, struct au1200_lcd_global_regs_t *pdata) -- 2.25.1