Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp555941ybt; Fri, 26 Jun 2020 06:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFTDlXuOYRmXOtOmDoulaLLLnrChOPNGkoXXF9CWfqmaVumL/JJio45Sveh1ZjuSFeU4fw X-Received: by 2002:a50:ec0f:: with SMTP id g15mr3335693edr.359.1593177021231; Fri, 26 Jun 2020 06:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593177021; cv=none; d=google.com; s=arc-20160816; b=U+UxRsiuG1BUY0rllZQ4ZZ/zrQ1jwCXtf5CIbhyoRPIVu1tvt+L9UkGjklGtJAw/7m DRUoLsZFCxm+i3ojimPJt9ScFkWdDTrgdV8JH2QjhlOGqH187VYg1GSJC4dQE4YsfzE5 ++pFvAu9uaNZ06qlKtzgXstI5NmSXYYSvv/2WnaybVoYEhNEb/oHVTy4iODq10NPldxh VTprtvYKwZZ43rFOs35LIeN4aqBe/91vKdFMLzH/gYmXpdB1nPxAXkCx1JhJZ/fMS6Z1 g9znjXCN92e8I77wkTK/StG7Aa7xYWXcfGIi3IrtMzZRN86Liz7rbokgn4dEpnoBIFxP kYug== 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; bh=ancI0DiJuBHXSKZ5+IbcX7oH9DUg3u3wUo5JHY1jQ8Q=; b=nNTnbYyEXg+jeey3KEGVREO4KveEum2ztEzI/mloYIlaRiW0R1R+rXVZl+vH8vui7g 4tyiBY10deZF+gwRc3S3g9hOliaWjXTa36oFSihrL60fcibVbxlYbFj2z/S6RBJvHy4Y iATF0leqU9YrJD7V92pwxzCcTqFHlUcx9jnUpWbDTgY/zQKeCxZdFP/8RHDbMbxMg+wz 23LI5xfDx/oco5dk+FW08zisRcU+5kUezC35lWd1N6SQebTLVpM8k0WnMpr/YuRqvRZC cARr5wkxyBlrTP4umgqsB/uk+HGoXVJK1A3yfbBFJU3fPEzEiJKHmyYRqgFwKV7zoKVm V2Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=Pn92yGRD; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si16367384eje.123.2020.06.26.06.09.57; Fri, 26 Jun 2020 06:10:21 -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; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=Pn92yGRD; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728475AbgFZNHT (ORCPT + 99 others); Fri, 26 Jun 2020 09:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbgFZNHQ (ORCPT ); Fri, 26 Jun 2020 09:07:16 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 330A3C08C5DB for ; Fri, 26 Jun 2020 06:07:16 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id x8so3366945plm.10 for ; Fri, 26 Jun 2020 06:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ancI0DiJuBHXSKZ5+IbcX7oH9DUg3u3wUo5JHY1jQ8Q=; b=Pn92yGRD/fxcPJIDYHH4rJLJdcosXAk1QbwpVThtFtWZA4uRvJigz+72Ve5FH6LZSB 2+cGYSK6eQ3URdV5czn6UhOHA+HB5RmBSmX/sdQulJQL8BXiZTVGHfREsUXbr1RnMthP 3fv840ufMK+0//ndQNbGhRnt74b9omCVgn8IVF8YDSqAzmhCYmzLYXq2+Rc6EDrJTPBZ WA6q9JiVY7Jj8VFlzWSCitwbYenH0JTtxIIa2R7oZKIjyExzryBP1D3sZzfIQt8kUpOY YhFv28eExbP3BQkfFFGn3a8bVojqOjJXZ/07B9dRqsSuqy7+JUXAHH+4l2i93vdWCPC2 6eWw== 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; bh=ancI0DiJuBHXSKZ5+IbcX7oH9DUg3u3wUo5JHY1jQ8Q=; b=fn6ReV9T9YKxhe6uxZUajFz8GPLAalLPzd++0T26GNmzlJbpS83Np4sXfqccac0cND 9kmyJqU/G7n8Dv/4lH04pKWhv+TJcoCdX5GAFm1t36/FTJm7WuNBarPw4ZdGEEzJCSWp A7rK+Ad1OzAh+r18kwPIRmRRciKFgZxGOZWhs8q8CiQI1Ys6AbwHnTEO2Ay7cISq9eXA 5qpZLwVgzWBETupUM8BtCALrYZDt9PPnzzPz/YMpFVXsdoaatVezQuXRITifZz2Ehl6t x8SPy+LrgWYo7L+ugGwnXr84sUUQMhMog9p2sy38AWxdRHua/cbRButtTiI3e8LpoLY/ dLoQ== X-Gm-Message-State: AOAM532bIjX6PJCFdYHoGFv+nNbTK0NTViX8F1PX93Ik4+AbPRa+WtVw LWVj+BEWPAMm6D2KX6e4Q81tXw== X-Received: by 2002:a17:90a:8b09:: with SMTP id y9mr3403487pjn.90.1593176835483; Fri, 26 Jun 2020 06:07:15 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id p5sm27715127pfg.162.2020.06.26.06.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 06:07:15 -0700 (PDT) From: Kaaira Gupta To: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , hverkuil@xs4all.nl Cc: Kaaira Gupta Subject: [PATCH v7 1/3] media: tpg: change char argument to const char Date: Fri, 26 Jun 2020 18:36:58 +0530 Message-Id: <20200626130700.2453-2-kgupta@es.iitr.ac.in> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200626130700.2453-1-kgupta@es.iitr.ac.in> References: <20200626130700.2453-1-kgupta@es.iitr.ac.in> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the argument of type char * to const char * for function tpg_gen_text(). Signed-off-by: Kaaira Gupta --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 10 +++++----- include/media/tpg/v4l2-tpg.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c index 50f1e0b28b25..dde22a4cbd6c 100644 --- a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c +++ b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c @@ -1927,34 +1927,34 @@ typedef struct { u16 __; u8 _; } __packed x24; static noinline void tpg_print_str_2(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(u8); } static noinline void tpg_print_str_4(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(u16); } static noinline void tpg_print_str_6(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(x24); } static noinline void tpg_print_str_8(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, unsigned first, unsigned div, unsigned step, - int y, int x, char *text, unsigned len) + int y, int x, const char *text, unsigned len) { PRINTSTR(u32); } void tpg_gen_text(const struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], - int y, int x, char *text) + int y, int x, const char *text) { unsigned step = V4L2_FIELD_HAS_T_OR_B(tpg->field) ? 2 : 1; unsigned div = step; diff --git a/include/media/tpg/v4l2-tpg.h b/include/media/tpg/v4l2-tpg.h index eb191e85d363..9749ed409856 100644 --- a/include/media/tpg/v4l2-tpg.h +++ b/include/media/tpg/v4l2-tpg.h @@ -241,7 +241,7 @@ void tpg_log_status(struct tpg_data *tpg); void tpg_set_font(const u8 *f); void tpg_gen_text(const struct tpg_data *tpg, - u8 *basep[TPG_MAX_PLANES][2], int y, int x, char *text); + u8 *basep[TPG_MAX_PLANES][2], int y, int x, const char *text); void tpg_calc_text_basep(struct tpg_data *tpg, u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf); unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line); -- 2.17.1