From patchwork Tue Mar 26 13:20:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10871047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C13E91669 for ; Tue, 26 Mar 2019 13:20:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A58CA2902B for ; Tue, 26 Mar 2019 13:20:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2E342903A; Tue, 26 Mar 2019 13:20:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8392029102 for ; Tue, 26 Mar 2019 13:20:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731526AbfCZNUd (ORCPT ); Tue, 26 Mar 2019 09:20:33 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40442 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbfCZNUc (ORCPT ); Tue, 26 Mar 2019 09:20:32 -0400 Received: by mail-ed1-f67.google.com with SMTP id h22so10723080edw.7 for ; Tue, 26 Mar 2019 06:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WTdg/Aw6xSxB38ya9cIMEU72GkPczaO/Ral2PlG6pEE=; b=TnW9BbvvlcBTZaQR0Y2K0UTjggMhYozpsuFVc/ebPKDY0kbrrLbsGAaT0o8JJGSv20 bxhdrmBjnIOcVdWh9G12KwrqCYCEiwhytQCJ+RS9tXVt0bGHMmCROXoqsGwZwk1YhyZc RCFKjD8okCPVLhaP+1NE3mCyjoQURPGZy5YW4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=WTdg/Aw6xSxB38ya9cIMEU72GkPczaO/Ral2PlG6pEE=; b=j/ZBRUro2bzRc0uQMLjET5L5RmS0Vhj3y1ywhprYQgFHrp7PN0g3COTgFL6HEZTXND tGz/MF9XiYHxO04ns/gHspiLmYYxB0Sgrsk3Pd+IcOiNZsVoQdvrFYoe66mqfIF6xfyV i8TLh51vHkV1ClSE3qgh5v6idlYrRBh7GqZTN2IUHuL7ntaQq5mYPjL58BWBzjxCZTsb zljzrK+PDnCyYGRIp7XPjQhvT0OJJa1SjFv5qnMojz0no3AE3/aY22gGHsta8SoJhlX5 9EUt6m/g+o9PLk54pLUf5o5nqsIve6vTE/2twECozd07WWXRaoCghR9sed3nIRR8P6lF wCTg== X-Gm-Message-State: APjAAAXTQF3nb6exKnP8Xb/RQvgBODuCCmdTBo/HgaJU+XnszoJYdZ+U QY6PNxhfvO3mSnrHAioZ/qDSvg== X-Google-Smtp-Source: APXvYqwJsHLIbai0PPvRWFRTZEVe7580W+EEXVzvNNfjAMm4dagzUGxKf3IROTH47jlFk7l3r4krJA== X-Received: by 2002:a17:906:f44:: with SMTP id h4mr17022965ejj.4.1553606430868; Tue, 26 Mar 2019 06:20:30 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id d10sm3668547ejh.66.2019.03.26.06.20.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 06:20:29 -0700 (PDT) From: Daniel Vetter To: DRI Development Cc: Intel Graphics Development , Daniel Vetter , Daniel Vetter , Rob Clark , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [PATCH 13/21] drm/bochs: Use drm_fb_helper_fill_info Date: Tue, 26 Mar 2019 14:20:00 +0100 Message-Id: <20190326132008.11781-13-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190326132008.11781-1-daniel.vetter@ffwll.ch> References: <20190326132008.11781-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This will change the fb name from "msm" to "msmdrmfb". v2: Rebase Signed-off-by: Daniel Vetter Cc: Rob Clark Cc: linux-arm-msm@vger.kernel.org Cc: freedreno@lists.freedesktop.org Reviewed-by: Noralf Trønnes --- drivers/gpu/drm/msm/msm_fbdev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_fbdev.c b/drivers/gpu/drm/msm/msm_fbdev.c index c03e860ba737..d088299babf3 100644 --- a/drivers/gpu/drm/msm/msm_fbdev.c +++ b/drivers/gpu/drm/msm/msm_fbdev.c @@ -122,13 +122,9 @@ static int msm_fbdev_create(struct drm_fb_helper *helper, fbdev->fb = fb; helper->fb = fb; - fbi->par = helper; fbi->fbops = &msm_fb_ops; - strcpy(fbi->fix.id, "msm"); - - drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->format->depth); - drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height); + drm_fb_helper_fill_info(fbi, helper, sizes); dev->mode_config.fb_base = paddr;