Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp25288ybt; Tue, 30 Jun 2020 14:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiYOlTGzJfFL+Kjk5CDYFyTjUcDAAEO2lRstC4XDlianvTNEaqiBVW5/vtsgxUl1ZTcFyq X-Received: by 2002:a50:e791:: with SMTP id b17mr26473591edn.366.1593550612418; Tue, 30 Jun 2020 13:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593550612; cv=none; d=google.com; s=arc-20160816; b=vAA8J/jfNnnVphXPUnnrNly9eXZJ3ecdRxP214Cj8mA5i3b6WW2+q9Aq5wknniL1uI zPgfjXLGtIhDAj7OB6MR6z16TWmJsY8PYF39W8Ed2q67p74xDGFpwkoEwtysq2ju1DJm bQwtMIrGDywxnfmOrJQl3SK8n4O/Z6i1JLDMQvWB6h0DZ1izacwgVCmmk8z7JUHw6y/d w32BaYePEdFW8uZseXJbbV4rs0dyG1qwgEMpyb1e+tCT5GBlEJeZDPrdlpl+0iFOTmbX JJ28ptZa7/jaSDiQW/6ZiU7PYTkBLXLTuK+bw4fAElKo2k64ou13hN/YBWqqoUu/gqFv W6gA== 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=oxk9ipQYxcqFczfcxPfmWxgT8jWr5EFVHcmB7yslsI5mVv4vMrlqLLLOfA/ozNQQKZ 32zhNhJ9N/kMUzsyxKwrr4hG66pDymwVICEK0DkBNeflPRjzVaZ7NZ/I87MXk8Xvr9Xt 6U5/riwkSWNbuzxR1Qae2LcdtImlcrgy2LzKoclDjOXvR8YngDRDtnzi//+WhazlTNNv CabeE2jMCfbO3NdmuXpT1ZX4idBvTreKsmdIj9tEOeIaBBs8Zk6LAOuFmPCJXp4azJw6 011420FaNQQXH2tVhLIGL6SsiFlfNCEto77cadSzyyGSCzMVc14BqHJ771/mUhrr8isu zS7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=FQVsZ98p; 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 e3si2281460edy.609.2020.06.30.13.56.30; Tue, 30 Jun 2020 13:56:52 -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=FQVsZ98p; 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 S1728592AbgF3TvH (ORCPT + 99 others); Tue, 30 Jun 2020 15:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728487AbgF3TvG (ORCPT ); Tue, 30 Jun 2020 15:51:06 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0847EC03E979 for ; Tue, 30 Jun 2020 12:51:06 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id gc15so2268813pjb.0 for ; Tue, 30 Jun 2020 12:51:06 -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=FQVsZ98pYkmWDMkBuZCTWvKgDO6euIiyscquOlbOmcoHQoo6wutBML9wKCscR/MDo3 AxDOZTddsf564cX1HZoyIcZV/Beh9k7X+Rm6C0WRU+XnXItAnuMl6EtR4DGm631aLv8L Xy/w4Y7v5gdSB3KhAHGVaGYJ5MtGL/WjxQtmv99hEjUpbQKomUQVhCuvilXIpKT9+T04 f5vLa1y74sq6sgltWJc1/UMJaWlzpWHb7aiciYfQuMVj7BtRKAgVy18tntQhxSgTdFy+ 5HOfGJIJ3M5Pf448z39K4rxsnjpmZxxcaFwo16MQRZ8ksc5R1RdrSJNeYZoHxRwz4+o5 lTEA== 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=WmEyl3v2mdPHceHdm9kHpkCeN8dgwfEUdyHYCw4u17RyfzI3i9ov7cHosiOsGqczMZ bVE85p59E3iai0CXvEmDD9fQFfxR98xOeU7I8ZVN+cqoHFTqDPCdk9WYc8F6am1cfVM4 EPVyR6SGgkPLkFrnS6AEAP+0eWGbGZVEFrrUjB1hX7L4tuao78mXOlUHihiiQdvTQV6o ihkFo3aIYrwhV6Cwrbs/6v954af4JLdvHyQbNnDZjU//I/F9Lmp+wjEwnX+D4T3vw2rQ YGc9StrahikRH7hvWK0+n1rclda9yi2Legq/2RPAlCMmWqEmmJgYzrfDZCijaMFC5E3s F4Gw== X-Gm-Message-State: AOAM531n5NuNSHzaOmsLaj6AQqqSiD2um4Dt3PW+TGf9rShe4eS24GLH +HOffH/OUNGl1bU5kIm55jeXSQ== X-Received: by 2002:a17:902:760d:: with SMTP id k13mr8556590pll.144.1593546665477; Tue, 30 Jun 2020 12:51:05 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id o11sm3362328pfp.88.2020.06.30.12.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 12:51:05 -0700 (PDT) From: Kaaira Gupta To: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, hverkuil@xs4all.nl, Kieran Bingham Cc: Kaaira Gupta Subject: [PATCH v8 1/3] media: tpg: change char argument to const char Date: Wed, 1 Jul 2020 01:20:50 +0530 Message-Id: <20200630195052.23880-2-kgupta@es.iitr.ac.in> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200630195052.23880-1-kgupta@es.iitr.ac.in> References: <20200630195052.23880-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