Commit c722576b authored by Tom Rix's avatar Tom Rix Committed by Greg Kroah-Hartman

usb: typec: qcom: set pm8150b_typec_res storage-class-specifier to static

smatch reports
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c:323:29: warning: symbol
  'pm8150b_typec_res' was not declared. Should it be static?

This variable is only used in its defining file, so it should be static
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230515114043.3452010-1-trix@redhat.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06042d7b
......@@ -320,7 +320,7 @@ static struct pmic_typec_port_resources pm8150b_port_res = {
.nr_irqs = 7,
};
struct pmic_typec_resources pm8150b_typec_res = {
static struct pmic_typec_resources pm8150b_typec_res = {
.pdphy_res = &pm8150b_pdphy_res,
.port_res = &pm8150b_port_res,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment