Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp208545imj; Thu, 14 Feb 2019 18:44:08 -0800 (PST) X-Google-Smtp-Source: AHgI3IZFXTZfWzCk47KDZQiJUc7F3VPHcxymU9/5wzE7g0qcTcuuBcrFczJ78q7jZ+3HsKtjLngA X-Received: by 2002:a17:902:6909:: with SMTP id j9mr7522789plk.196.1550198648741; Thu, 14 Feb 2019 18:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198648; cv=none; d=google.com; s=arc-20160816; b=Rk6YRI3ZEgyY/w3t+aeeaneI/l6+Ictr30xMYVaxW1tmW2xZMbKeOWEylTL82B+Iep 7AUUimYszg212Wxy7RapZGQn2AVR6Hnv06qCy8XkYpo0VWH9QWfZANQD4HCNc04JMyE8 9ioiMIYWjbn+lP1PtEAZbBfgtcmKYvB6+0resStnJOSMF5s8pgl4kzAv6lxShuyDrCVI qD274xxeoAbNmN+1S9AkKKdnPMofySLP8V2MezCMWnUnBdAlIKGn31sAOUHtaQjjt9TN +I8GvZdsqwNQOI8ZqT1RVG1xKk4PD5P9MPLA+o3DG7LOUGjdIvBgKbf30HkUFh2LmDXF xbbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UvRR8EbinnQx63J6dI5Iw4pdbAk5nOwKX4oq5dafzeY=; b=LVniTKP/ygfU7yS6QIFp3Bnfga91Hr17bbu0kTDsneQOa0SL3e96ATmAnTsGnE0kjW qWmcaOBTAap2QKrEOqmaH7WlfOCtZ3RqBBwsxFZy29N79uaYQ/+Hq+SB7FyKjpfnJPha VIn53D8Hx3TNW68M3C0UKi3+C9JLbzW7J0qYLRXLAIkhr6JBD+72mLGYCN984iXp9Ybc oxBaPhrhlFKu3znjLg4eOtzTpMuQ6fkdbywO9DYITl9xU2gbgRwDHK3jQLSJLRSodlwb VnJZmZGPeXY3h+5P9AbB7m981l8L/3DbZii4aszdxnL+JNmAu64lOOoT1Hf2lB4i1CWv rCkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="uLHi/x0j"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si4094424plt.190.2019.02.14.18.43.53; Thu, 14 Feb 2019 18:44:08 -0800 (PST) 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=@kernel.org header.s=default header.b="uLHi/x0j"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731595AbfBOCJN (ORCPT + 99 others); Thu, 14 Feb 2019 21:09:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:49346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731511AbfBOCJI (ORCPT ); Thu, 14 Feb 2019 21:09:08 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F4CE222C9; Fri, 15 Feb 2019 02:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196548; bh=rS1SbKaSUqm9ftT4tUjE8TiJRTQUMZw49ERPV7se18E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uLHi/x0jB2zn1MQGKOAd7V45xhxlRKdnI4THJH2cZUcP16b1KonF+PSINAjL+1Jf+ k9opBYy59QvrOSTYdr1HGN/vDnQE/VrJDYkgBY9QtYWBggaPThtz6ahKZNz3944O6V y5GkPAco0Eh9vXgzxYV4TLvwVUTcNhq41IxxwhGo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lubomir Rintel , Stephen Boyd , Sasha Levin , linux-clk@vger.kernel.org Subject: [PATCH AUTOSEL 4.20 08/77] clk: sysfs: fix invalid JSON in clk_dump Date: Thu, 14 Feb 2019 21:07:46 -0500 Message-Id: <20190215020855.176727-8-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lubomir Rintel [ Upstream commit c6e909972ef87aa2a479269f46b84126f99ec6db ] Add a missing comma so that the output is valid JSON format again. Fixes: 9fba738a53dd ("clk: add duty cycle support") Signed-off-by: Lubomir Rintel Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index af011974d4ec..2bcd9cb26348 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2782,7 +2782,7 @@ static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level) seq_printf(s, "\"protect_count\": %d,", c->protect_count); seq_printf(s, "\"rate\": %lu,", clk_core_get_rate(c)); seq_printf(s, "\"accuracy\": %lu,", clk_core_get_accuracy(c)); - seq_printf(s, "\"phase\": %d", clk_core_get_phase(c)); + seq_printf(s, "\"phase\": %d,", clk_core_get_phase(c)); seq_printf(s, "\"duty_cycle\": %u", clk_core_get_scaled_duty_cycle(c, 100000)); } -- 2.19.1