Skip to content

Commit

Permalink
nvmem: qfprom: minor nit fixes
Browse files Browse the repository at this point in the history
Fix a missed newline, change an 'if' to 'else if' and update
a comment which is stale after the merge of '5a1bea2a: nvmem:
qfprom: Add support for fuseblowing on sc7280'

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210611083348.20170-8-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Rajendra Nayak authored and Greg Kroah-Hartman committed Jun 11, 2021
1 parent 78a005a commit c813bb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/nvmem/qfprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ static const struct qfprom_soc_compatible_data sc7280_qfprom = {
.keepout = sc7280_qfprom_keepout,
.nkeepout = ARRAY_SIZE(sc7280_qfprom_keepout)
};

/**
* qfprom_disable_fuse_blowing() - Undo enabling of fuse blowing.
* @priv: Our driver data.
Expand Down Expand Up @@ -195,7 +196,7 @@ static int qfprom_enable_fuse_blowing(const struct qfprom_priv *priv,
}

/*
* Hardware requires 1.8V min for fuse blowing; this may be
* Hardware requires a min voltage for fuse blowing; this may be
* a rail shared do don't specify a max--regulator constraints
* will handle.
*/
Expand Down Expand Up @@ -399,7 +400,7 @@ static int qfprom_probe(struct platform_device *pdev)

if (major_version == 7 && minor_version == 8)
priv->soc_data = &qfprom_7_8_data;
if (major_version == 7 && minor_version == 15)
else if (major_version == 7 && minor_version == 15)
priv->soc_data = &qfprom_7_15_data;

priv->vcc = devm_regulator_get(&pdev->dev, "vcc");
Expand Down

0 comments on commit c813bb3

Please sign in to comment.