Commit 67c74613 authored by Randy Dunlap's avatar Randy Dunlap Committed by Chanwoo Choi
Browse files

extcon: max14526: avoid defined but not used warning



SIMPLE_PM_DEV_OPS() is deprecated according to <linux/pm.h>.
Use DEFINE_SIMPLE_PM_DEV_OPS() instead. This avoids a build warning
when CONFIG_PM is not enabled:

drivers/extcon/extcon-max14526.c:265:12: warning: ‘max14526_resume’ defined but not used [-Wunused-function]
  265 | static int max14526_resume(struct device *dev)

Fixes: 145af3dd ("extcon: Add basic support for Maxim MAX14526 MUIC")
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/lkml/20250513210252.1139749-1-rdunlap@infradead.org/


Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 145af3dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment