device_property_present
if (!device_property_present(gpt->dev, "gpio-controller"))
EXPORT_SYMBOL_GPL(device_property_present);
if (!device_property_present(&serdev->dev, "enable-gpios")) {
master->no_delays = device_property_present(&pdev->dev, "no-gpio-delays");
if (device_property_present(dev->parent, "interrupt-controller")) {
if (gc->parent && device_property_present(gc->parent,
if (device_property_present(parent, "rohm,enable-hidden-gpo"))
if (device_property_present(&pdev->dev, "interrupt-controller")) {
if (device_property_present(&gc->gpiodev->dev, "gpio-ranges"))
return device_property_present(dev, "panel");
if (!device_property_present(dev, "operating-points-v2"))
if (device_property_present(dev, "write-only"))
if (dev && device_property_present(dev, "label")) {
if (!device_property_present(dev, "cooling-levels"))
if (device_property_present(&client->dev,
dev->has_pfunc = device_property_present(&pdev->dev, "ti,has-pfunc");
if (device_property_present(device, "wx,i2c-snps-model"))
if (irq < 0 && !device_property_present(parent, "smbalert-gpios"))
if (device_property_present(&st->spi->dev, "adi,high-z-input"))
if (!device_property_present(&st->spi->dev, "#clock-cells"))
if (device_property_present(dev, "adi,no-ref-current-limit")) {
if (device_property_present(dev, "adi,no-ref-high-z")) {
} else if (!device_property_present(dev, "clocks") &&
device_property_present(dev, "#clock-cells")) {
if (!device_property_present(dev, "#clock-cells"))
if (device_property_present(dev, "adi,voltage-alert-last-chan")) {
if (device_property_present(dev, "adi,acquisition-time-ns")) {
if (device_property_present(&pdev->dev, "io-backends"))
if (device_property_present(dev, "io-backends"))
adc->always_turbo = device_property_present(dev, "adi,always-turbo");
if (!device_property_present(dev, "#clock-cells") || !st->clkin)
if (device_property_present(dev, "ingenic,use-internal-divider"))
if (!device_property_present(dev, "#io-backend-cells"))
pdata->use_vref = device_property_present(dev, "vref-supply");
if (!device_property_present(&spi->dev, "#clock-cells"))
if (!device_property_present(dev, "#clock-cells"))
if (device_property_present(dev, "interrupt-controller")) {
if (!device_property_present(&client->dev, "keypad,num-rows") &&
!device_property_present(&client->dev, "keypad,num-columns")) {
pdata->rep = device_property_present(dev, "autorepeat");
if (!device_property_present(dev, rotaryname[i]))
if (device_property_present(&client->dev, "azoteq,clk-div"))
if (device_property_present(&client->dev, "linux,keycodes")) {
if (device_property_present(&client->dev,
if (device_property_present(&client->dev, "azoteq,reseed-offset"))
iqs269->hall_enable = device_property_present(&client->dev,
if (device_property_present(&client->dev, "azoteq,ati-band-disable"))
if (device_property_present(&client->dev, "azoteq,ati-lp-only"))
if (device_property_present(&client->dev, "azoteq,ati-band-tighten"))
if (device_property_present(&client->dev, "azoteq,filt-disable"))
if (device_property_present(&client->dev, "azoteq,dual-direction"))
if (device_property_present(&client->dev, "azoteq,global-cap-increase"))
if (device_property_present(&client->dev, "azoteq,tracking-enable"))
if (device_property_present(&client->dev, "azoteq,clk-div"))
if (device_property_present(&client->dev, "azoteq,ulp-enable"))
if (device_property_present(&client->dev, "azoteq,ati-band-disable"))
if (device_property_present(&client->dev, "azoteq,ati-lp-only"))
if (device_property_present(&client->dev, "azoteq,thresh-extend"))
if (device_property_present(&client->dev, "azoteq,tracking-enable"))
if (device_property_present(&client->dev, "azoteq,reseed-offset"))
if (!device_property_present(dev, "rotary-encoder,encoding") ||
if (device_property_present(dev, "st,onkey-clear-cc-flag"))
if (device_property_present(dev, "st,onkey-pu-inactive")) {
if (!device_property_present(dev, buttons_property))
if (!device_property_present(&z2->spidev->dev, CAL_PROP_NAME))
if (device_property_present(dev, keymap_property)) {
if (device_property_present(dev, buttons_property)) {
if (!device_property_present(&client->dev, "compatible"))
ts->use_hndshk = device_property_present(dev, "use-handshake");
if (device_property_present(dev, "linux,keycodes")) {
forced_comms = device_property_present(&client->dev,
if (!device_property_present(dev, "io-channel-names"))
if (device_property_present(&client->dev, "linux,keycodes")) {
if (!device_property_present(dev, "#clock-cells"))
if (!device_property_present(dev, prop_name)) {
if (!device_property_present(mc->dev, "#interconnect-cells") ||
if (device_property_present(dev, "#pwm-cells")) {
if (device_property_present(dev, "#gpio-cells")) {
if (device_property_present(adp5585->dev, "adi,keypad-pins")) {
if (device_property_present(dev, "read-only"))
if (device_property_present(dev, "no-read-rollover"))
if (device_property_present(dev, "label")) {
if (device_property_present(dev, "read-only"))
if (!device_property_present(dev, prop)) {
!device_property_present(dev, "dmas")) {
if (device_property_present(dev, "fifo-watermark-aligned"))
if (device_property_present(dev, "dmas") &&
if (device_property_present(dev, "sdhci,wp-inverted") ||
device_property_present(dev, "wp-inverted"))
if (device_property_present(dev, "sdhci,auto-cmd12"))
if (device_property_present(dev, "sdhci,1-bit-only") ||
if (device_property_present(dev, "broken-cd"))
if (device_property_present(dev, "no-1-8-v"))
if (device_property_present(dev, "keep-power-in-suspend"))
if (device_property_present(mcan_class->dev, "interrupts") ||
device_property_present(mcan_class->dev, "interrupt-names")) {
if (!device_property_present(&priv->spi->dev, "gpio-controller"))
if (!device_property_present(&priv->spi->dev, "gpio-controller"))
if (device_property_present(pdata->phy_dev, XGBE_BLWC_PROPERTY)) {
if (device_property_present(pdata->phy_dev, XGBE_CDR_RATE_PROPERTY)) {
if (device_property_present(pdata->phy_dev, XGBE_PQ_SKEW_PROPERTY)) {
if (device_property_present(pdata->phy_dev, XGBE_TX_AMP_PROPERTY)) {
if (device_property_present(pdata->phy_dev, XGBE_DFE_CFG_PROPERTY)) {
if (device_property_present(pdata->phy_dev, XGBE_DFE_ENA_PROPERTY)) {
if (device_property_present(dev, XGBE_DMA_IRQS_PROPERTY)) {
(!device_property_present(dev, "sfp-gpios") &&
!device_property_present(dev, "rxlos-gpios")))
if (device_property_present(dev, "smsc,irq-active-high"))
if (device_property_present(dev, "smsc,irq-push-pull"))
if (device_property_present(dev, "smsc,force-internal-phy"))
if (device_property_present(dev, "smsc,force-external-phy"))
if (device_property_present(dev, "smsc,save-mac-address"))
priv->tx_level_prop_present = device_property_present(dev, "phy-10base-t1l-2.4vpp");
device_property_present(&phydev->mdio.dev,
device_property_present(&phydev->mdio.dev,
if (!device_property_present(dev, "maxlinear,use-broken-interrupts"))
if (device_property_present(dev, "smsc,disable-energy-detect"))
if (device_property_present(dev, FDP_DP_FW_VSC_CFG_NAME)) {
if (device_property_present(&nfc_spi_dev->dev, "st95hfvin")) {
nvmem->read_only = device_property_present(config->dev, "read-only") ||
if (!device_property_present(dev, "vddaon-supply"))
else if (device_property_present(cspmu->dev, "cpus"))
if (device_property_present(dev, "phy-type")) {
nvmem_enabled = device_property_present(dev, "nvmem-cells");
instance->efuse_sw_en = device_property_present(dev, "nvmem-cells");
priv->enable_ssc = device_property_present(dev, "rockchip,enable-ssc");
priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk");
if (device_property_present(dev, "orientation-switch")) {
if (device_property_present(dev, "mode-switch")) {
if (device_property_present(dev, "maximum-speed")) {
if (device_property_present(phy_drd->dev, "orientation-switch")) {
if (device_property_present(&port->dev, "maximum-speed")) {
if (!device_property_present(parent, "gpio-controller"))
if (!device_property_present(dev, "gpio-controller"))
device_property_present(&i2c->dev, "richtek,vsel-active-low");
if (!device_property_present(dev, "#clock-cells")) {
if (device_property_present(dev, "#clock-cells")) {
if (!device_property_present(dev, "#clock-cells"))
if (device_property_present(dev, "wakeup-source"))
if (device_property_present(tps65910->dev, "wakeup-source"))
if (device_property_present(dev, "hip06-sas-v2-quirk-amt")) {
if (device_property_present(&pdev->dev, "trigger-sources")) {
if (device_property_present(dev, "led-gpios"))
if (device_property_present(dev, "init"))
present = device_property_present(dev, gpio_str);
if (device_property_present(&pdev->dev, "nvidia,needs-double-reset"))
if (device_property_present(dev, "extcon"))
if (!device_property_present(dwc->dev, propname))
if (device_property_present(g0->dev, "firmware-name")) {
if (device_property_present(dev, "pwms")) {
if (device_property_present(dev, "brightness-levels")) {
if (device_property_present(dev, "brightness-levels")) {
if (device_property_present(dev, "linux,open-drain"))
wdt->use_sw_pm = device_property_present(dev, "dlg,use-sw-pm");
da9063->use_sw_pm = device_property_present(dev, "dlg,use-sw-pm");
bool device_property_present(const struct device *dev, const char *propname);
if (device_property_present(&pdev->dev, "default-blocked"))
if (device_property_present(dev, "adi,input1-differential"))
if (device_property_present(dev, "adi,input2-differential"))
if (device_property_present(dev, "adi,input3-differential"))
if (device_property_present(dev, "adi,input4-differential"))
if (device_property_present(dev, "adi,lineout-differential"))
if (device_property_present(dev, "adi,lineout-gnd-sense"))
if (device_property_present(dev, "realtek,in2-differential") ||
device_property_present(dev, "realtek,dmic1-data-pin") ||
device_property_present(dev, "realtek,dmic2-data-pin") ||
device_property_present(dev, "realtek,jd-mode"))
if (device_property_present(&pdev->dev, "mediatek,mclk")) {
return device_property_present(mcasp->dev, "gpio-controller");