mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 14:53:11 +01:00
Take advantage of the generic drvdata accessors of the generic Device type. While at it, use from_result() instead of match. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
9 lines
166 B
C
9 lines
166 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
bool rust_helper_dev_is_platform(const struct device *dev)
|
|
{
|
|
return dev_is_platform(dev);
|
|
}
|