@@ -490,35 +490,12 @@ struct iio_dev {
490490#endif
491491};
492492
493- /**
494- * iio_find_channel_from_si() - get channel from its scan index
495- * @indio_dev: device
496- * @si: scan index to match
497- */
498493const struct iio_chan_spec
499494* iio_find_channel_from_si (struct iio_dev * indio_dev , int si );
500-
501- /**
502- * iio_device_register() - register a device with the IIO subsystem
503- * @indio_dev: Device structure filled by the device driver
504- **/
505495int iio_device_register (struct iio_dev * indio_dev );
506-
507- /**
508- * iio_device_unregister() - unregister a device from the IIO subsystem
509- * @indio_dev: Device structure representing the device.
510- **/
511496void iio_device_unregister (struct iio_dev * indio_dev );
512-
513497int devm_iio_device_register (struct device * dev , struct iio_dev * indio_dev );
514498void devm_iio_device_unregister (struct device * dev , struct iio_dev * indio_dev );
515-
516- /**
517- * iio_push_event() - try to add event to the list for userspace reading
518- * @indio_dev: IIO device structure
519- * @ev_code: What event
520- * @timestamp: When the event occurred
521- **/
522499int iio_push_event (struct iio_dev * indio_dev , u64 ev_code , s64 timestamp );
523500
524501extern struct bus_type iio_bus_type ;
@@ -582,10 +559,6 @@ static inline void *iio_device_get_drvdata(struct iio_dev *indio_dev)
582559
583560/* Can we make this smaller? */
584561#define IIO_ALIGN L1_CACHE_BYTES
585- /**
586- * iio_device_alloc() - allocate an iio_dev from a driver
587- * @sizeof_priv: Space to allocate for private structure.
588- **/
589562struct iio_dev * iio_device_alloc (int sizeof_priv );
590563
591564static inline void * iio_priv (const struct iio_dev * indio_dev )
@@ -599,64 +572,11 @@ static inline struct iio_dev *iio_priv_to_dev(void *priv)
599572 ALIGN (sizeof (struct iio_dev ), IIO_ALIGN ));
600573}
601574
602- /**
603- * iio_device_free() - free an iio_dev from a driver
604- * @indio_dev: the iio_dev associated with the device
605- **/
606575void iio_device_free (struct iio_dev * indio_dev );
607-
608- /**
609- * devm_iio_device_alloc - Resource-managed iio_device_alloc()
610- * @dev: Device to allocate iio_dev for
611- * @sizeof_priv: Space to allocate for private structure.
612- *
613- * Managed iio_device_alloc. iio_dev allocated with this function is
614- * automatically freed on driver detach.
615- *
616- * If an iio_dev allocated with this function needs to be freed separately,
617- * devm_iio_device_free() must be used.
618- *
619- * RETURNS:
620- * Pointer to allocated iio_dev on success, NULL on failure.
621- */
622576struct iio_dev * devm_iio_device_alloc (struct device * dev , int sizeof_priv );
623-
624- /**
625- * devm_iio_device_free - Resource-managed iio_device_free()
626- * @dev: Device this iio_dev belongs to
627- * @indio_dev: the iio_dev associated with the device
628- *
629- * Free iio_dev allocated with devm_iio_device_alloc().
630- */
631577void devm_iio_device_free (struct device * dev , struct iio_dev * indio_dev );
632-
633- /**
634- * devm_iio_trigger_alloc - Resource-managed iio_trigger_alloc()
635- * @dev: Device to allocate iio_trigger for
636- * @fmt: trigger name format. If it includes format
637- * specifiers, the additional arguments following
638- * format are formatted and inserted in the resulting
639- * string replacing their respective specifiers.
640- *
641- * Managed iio_trigger_alloc. iio_trigger allocated with this function is
642- * automatically freed on driver detach.
643- *
644- * If an iio_trigger allocated with this function needs to be freed separately,
645- * devm_iio_trigger_free() must be used.
646- *
647- * RETURNS:
648- * Pointer to allocated iio_trigger on success, NULL on failure.
649- */
650578struct iio_trigger * devm_iio_trigger_alloc (struct device * dev ,
651579 const char * fmt , ...);
652-
653- /**
654- * devm_iio_trigger_free - Resource-managed iio_trigger_free()
655- * @dev: Device this iio_dev belongs to
656- * @iio_trig: the iio_trigger associated with the device
657- *
658- * Free iio_trigger allocated with devm_iio_trigger_alloc().
659- */
660580void devm_iio_trigger_free (struct device * dev , struct iio_trigger * iio_trig );
661581
662582/**
0 commit comments