From patchwork Wed Aug 21 03:55:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 171905 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp416807ily; Tue, 20 Aug 2019 20:56:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzp0eZZGkNepe9QXeWa5xWFmYN4f1M9pZlfMe2NuibbFsqKuu3DJCSmboNUUHCN/2LHgdUM X-Received: by 2002:a17:902:1107:: with SMTP id d7mr31208116pla.184.1566359767029; Tue, 20 Aug 2019 20:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566359767; cv=none; d=google.com; s=arc-20160816; b=gzXZCPU9Ec0YMFTJs+llaB8c1odV3gkpoCueFeul8D2BuoIWJ/enudJaExyGlDAAuB dRqDE2t4v017+J7/s9hrgABK8gLCrqqmxsE926ti3F6N0RnaCmf84ansCtw0tDkPzrn1 qWvlzECEGJldBdDJ6ZZUlg43zOaRGrLkfEwkDwOiCHZ9yPFF3pIrH4Fz280Hs0qNNenb RSI9dOxmxOxNp6mPsJwjYCjjyvYVNDXB921chOmZVul3TJk0HrTeiG6s7hPFIv6313iA RFPOvwizlGYwo9Fsfhk5O2Q17LQXgEPldvFE0Z94ZhKDwi8P9NkUzLzYr04Kx/SscOsm Dpxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=6fHkMxqT3+v0CE4zyYlxI6pTvIRPi8TKT8Z20L42FeY=; b=09CbfHkKzmgGPFkYi8TerJS95Cm/SaJNKA5zcoHrcorSnZGKTuvm4kCi6DOZm3iOAx mEw3I3V+dHKvH6dXOGwlO0yd3OTlQd9KdYFi5qEFIIhUWYLLqbQfV/79m4WAa2ybFdXh pFyKHEYVa9cwaPKVEHy8eNOtjjhLmaFX5R99UAZblDMNVJOKMOLcdiV3TWXE6UIRkaOJ FrkratCpyes/Ut8le38xLxkMjRrLZGVfloYlFF6745efpREbth56gteo0Ksbz0YwWpN/ U99FOgrInVVz4wUw58J7irsinJNW5kUB/kBXAjFwQhBmXZwEdwZOZTEMulx8Er1OoYL/ W9BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CGTM9Ip8; 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 a9si10838005pgv.116.2019.08.20.20.56.06; Tue, 20 Aug 2019 20:56:07 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=CGTM9Ip8; 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 S1727438AbfHUD4F (ORCPT + 28 others); Tue, 20 Aug 2019 23:56:05 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:17936 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbfHUDz4 (ORCPT ); Tue, 20 Aug 2019 23:55:56 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x7L3tQp4016439; Wed, 21 Aug 2019 12:55:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x7L3tQp4016439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566359729; bh=6fHkMxqT3+v0CE4zyYlxI6pTvIRPi8TKT8Z20L42FeY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CGTM9Ip8o61zeqHGDHeQK9RgclVA0dIXBS0WTjDmQzDmdx6VqjNALxNsUNKVlLh/s wQHaHeqEOTciWRofraKElz+DdJTipiVlPP50NKlLPgWLJrV9ny/9Ja7dAh5XudxAIS JLi3xQG00ucSqQwts31QadViT0zDqYJoUWEohMiDxynNpGmKR8ybqAmOOwlpnnFvQC cNe0MQsqEvIXeRP6yD7BTt+VM0yh9xgK6hIwDAyMoW8BmLBaKBw82B//jbgKYBBBTw oqx7PkXwOM93RByfRyHrPGHjRcRq4aEkjc7IKp0K7zrqekUX9s7dPUUr1Nga8nMRc1 9Hr24AH+ql5mQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Cc: Geert Uytterhoeven , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] video/logo: simplify cmd_logo Date: Wed, 21 Aug 2019 12:55:15 +0900 Message-Id: <20190821035517.21671-4-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190821035517.21671-1-yamada.masahiro@socionext.com> References: <20190821035517.21671-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Shorten the code. It still works in the same way. Signed-off-by: Masahiro Yamada --- drivers/video/logo/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) -- 2.17.1 diff --git a/drivers/video/logo/Makefile b/drivers/video/logo/Makefile index 16f60c1e1766..7d672d40bf01 100644 --- a/drivers/video/logo/Makefile +++ b/drivers/video/logo/Makefile @@ -22,20 +22,15 @@ pnmtologo := scripts/pnmtologo # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..." quiet_cmd_logo = LOGO $@ - cmd_logo = $(pnmtologo) \ - -t $(patsubst $*_%,%,$(notdir $(basename $<))) \ - -n $(notdir $(basename $<)) -o $@ $< + cmd_logo = $(pnmtologo) -t $(lastword $(subst _, ,$*)) -n $* -o $@ $< -$(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE +$(obj)/%.c: $(src)/%.pbm $(pnmtologo) FORCE $(call if_changed,logo) -$(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE +$(obj)/%.c: $(src)/%.ppm $(pnmtologo) FORCE $(call if_changed,logo) -$(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE - $(call if_changed,logo) - -$(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE +$(obj)/%.c: $(src)/%.pgm $(pnmtologo) FORCE $(call if_changed,logo) # generated C files