Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp321710ybl; Tue, 20 Aug 2019 20:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJOjZMiB48SGVrUmwbWZ82SvAW0t4uF3H6ZZsX2Qs2RO9sjkvPi+7Wy6UFhKHrwvKCh3Ml X-Received: by 2002:a63:2c8:: with SMTP id 191mr27033351pgc.139.1566359841544; Tue, 20 Aug 2019 20:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566359841; cv=none; d=google.com; s=arc-20160816; b=AAZ3ItMK0NXehzmNRNHXYt4sCSuGWUyO4o+XF24pDVDDI58LQr7IlM8grvYt1HjxRR +rbB2y01+KJsT8xshOl8TcugL/wN+WwENWw9PvLLnwjJxMu1zVIvYq6AaY8MCMWMOrJI gB7rHotnL1aO/GGYGM3RNP3vG906FP+nQ1k8I4459XHSEhI2opqw2qeM0igMKd6g4KD6 /adW072E3MeCkLi94RSdnXDbquQ7NlmdE6Qs0uyv2dsajwx2kXsfDaSyv0vV3aFysr19 u1TxsCg09jIKeJX8qLiwlkTnR8Mkke3kSbbyBDPqhh8RMJ7N8NejH/gJZsyCK1TLeGjl JgMw== 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 e14si13264822pgg.442.2019.08.20.20.57.06; Tue, 20 Aug 2019 20:57:21 -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 S1727433AbfHUD4F (ORCPT + 99 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(-) 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 -- 2.17.1