samples: basic: button: use gpio_is_ready_dt
Switch to using the dedicated `gpio_is_ready_dt`
function instead of the raw `device_is_ready`.
@@ -42,7 +42,7 @@ void main(void)
{
int ret;
- if (!device_is_ready(button.port)) {
+ if (!gpio_is_ready_dt(&button)) {
printk("Error: button device %s is not ready\n",
button.port->name);
return;
